Experiment 5.2#
Running this experiment requires the following steps:
For each data set, run the respective experiment using the following script / command:
python $HSR4HCI_SCRIPTS_DIR/experiments/pixel-coefficients/01_train_models.py \ --experiment-dir $HSR4HCI_EXPERIMENTS_DIR/main/5.2_pixel-coefficients/<dataset>/binning-factor_1
If you have access to a cluster, you can parallelize this using the
--n-roi-splitsand--roi-splitoptions. This step will create a directory:$HSR4HCI_EXPERIMENTS_DIR/main/5.2_pixel-coefficients/<dataset>/binning-factor_1/fits/partial
which contains the partial result files. If you do not parallelize the experiment using
--n-roi-splitsand--roi-split, this folder will only contain a single FITS file.Merge all partial result files using the following command:
python $HSR4HCI_SCRIPTS_DIR/experiments/pixel-coefficients/02_merge_fits_files.py \ --experiment-dir $HSR4HCI_EXPERIMENTS_DIR/main/5.2_pixel-coefficients/<dataset>/binning-factor_1
This will create a
coefficients.fitsfile at the same level as thepartialfolder.Attention
This step is necessary even if you did not parallelize the experiment. In this case, the βmergingβ step basically just copies and renames the result FITS file to the expected location.
Finally, you can create the plots from the paper by running:
python $HSR4HCI_EXPERIMENTS_DIR/main/5.2_pixel-coefficients/make_plots.py \ --experiment-dir $HSR4HCI_EXPERIMENTS_DIR/main/5.2_pixel-coefficients/<dataset>/binning-factor_1
The plots are stored in a subdirectory of:
$HSR4HCI_EXPERIMENTS_DIR/main/5.2_pixel-coefficients/plots