-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mv models from github to zenodo * update * add script option * usage * rename templates to add gp * update * rm * update with descriptions * update * tools readme * models readme * gammapy readme * paragraphs * split datasets and code use * update * rename typo * typo * increase log level * move env to mamba * activate mamba env * update readme * update function name as sag rel2 * mamba env * fix paths and clean unused * add tutorial notebook * update * rm irfs saves * fix path * update * rm prints * rm unused
- Loading branch information
1 parent
6752c34
commit 11b72e3
Showing
53 changed files
with
1,698 additions
and
1,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# GENERIC CONFIGURATION | ||
samples: # number of samples | ||
start_seed: # starting seed of sample | ||
|
||
# SIMULATIONS PARAMETERS | ||
simulation: | ||
directory: # path to data directory | ||
datfile: # name of infotable in data directory | ||
id: # empty to process full dataset - individual observation id to process single dl3 | ||
caldb: # name of calibration database production | ||
irf: # name of single IRF file or 'random' | ||
caldb_path: # path to calibration database folder "caldb" | ||
point_ra: # empty to process full dataset - individual RA of observation pointing to process single dl3 | ||
point_dec: # empty to process full dataset - individual DEC of observation pointing to process single dl3 | ||
skyframeref: # observation sky frame, typically icrs or fk5 | ||
skyframeunitref: # observation sky frame unit, typically deg | ||
timesys: # observation time system, typically tt | ||
timeref: # observation time reference, typically 51544.5 | ||
timeunit: # observation time unit, typically s | ||
|
||
# DATA SELECTION OPTIONS | ||
selection: | ||
emin: # minimum energy, tipycally in TeV | ||
emax: # maximum energy, typically in TeV | ||
energy_bins_per_decade: # bins per energy decade | ||
roi_ringrad: # radius of ROI, typically in TeV | ||
tmin: # minimum time, tipycally in seconds | ||
tmax: # maximum time, tipycally in seconds | ||
|
||
# EXECUTION OPTIONS | ||
execute: | ||
pixel_size: # pixel size, typically in deg | ||
exclusion: # path to regions exlusion file | ||
outdir: # path to output directory | ||
reducedirfdir: # path to reduced IRF (to read or create) | ||
savefits: # option to save fits products (yes/no) | ||
plotfullfov: # option to plot full FOV plots (yes/no) | ||
plotirfs: # option to plot IRF (yes/no) | ||
plotts: # option to plot TS map (yes/no) | ||
makemap: # option to compute maps (yes/no) | ||
mapreg: # option to save regions file (yes/no) | ||
maproi: # map region radius, typically in deg | ||
computeph: # option to perform aperture photometry (yes/no) | ||
blindsearch: # option to perform blind search (yes/no) | ||
|
||
# LOGGING OPTIONS | ||
logging: | ||
loglevel: # logging level: debug, info, warning, error, critical | ||
logfile: # name of file for saving logs | ||
|
||
# PHOTOMETRY PARAMETERS | ||
photometry: | ||
onoff_radius: # radius of regions, typically in deg | ||
onoff_method: # off regions method, typically reflection | ||
|
||
# BLINDSEARCH PARAMETERS | ||
blindsearch: | ||
sigmathresh: # sigma acceptance threshold | ||
maxoffset: # maximum acceptable offset, tyically in deg | ||
maxsrc: # maximum number of candidates | ||
plotzoom: # option to plot a candidate zoom-in (yes/no) | ||
corr_rad: # correlation radius |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Model training | ||
|
||
After you have compiled the configuration file following the commentary in [template_cnn.yml](../conf/template_cnn.yml) an preprocess your data following the [README](../tools/REDME.md) you can train your models. | ||
|
||
```bash | ||
python cnn.py -f ../conf/your_conf_file.yml | ||
``` | ||
|
||
Alternatively you can submit a job to [Slurm](https://slurm.schedmd.com/documentation.html) if available to you. | ||
|
||
```bash | ||
python slurmjobs.py -f ../conf/your_conf_file.yml -a cnn -m clean | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
python slurmjobs.py -f ../conf/your_conf_file.yml -a cnn -m localise | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.1 MB
astroai/models/cnn_regressor/regressor_5sgm_filter2_2convs_dense10.keras
Binary file not shown.
Binary file removed
BIN
-1.1 MB
astroai/models/cnn_regressor/regressor_5sgm_filter2_2convs_dense10_CLEAN.keras
Binary file not shown.
Binary file removed
BIN
-686 Bytes
astroai/models/cnn_regressor/regressor_5sgm_filter2_2convs_dense10_CLEAN_history.npy
Binary file not shown.
Binary file removed
BIN
-1010 Bytes
astroai/models/cnn_regressor/regressor_5sgm_filter2_2convs_dense10_history.npy
Binary file not shown.
Binary file removed
BIN
-1.08 MB
astroai/models/cnn_regressor/regressor_5sgm_filter2_4convs_dense10.keras
Binary file not shown.
Binary file removed
BIN
-1.08 MB
astroai/models/cnn_regressor/regressor_5sgm_filter2_4convs_dense10_CLEAN.keras
Binary file not shown.
Binary file removed
BIN
-1.13 KB
astroai/models/cnn_regressor/regressor_5sgm_filter2_4convs_dense10_CLEAN_history.npy
Binary file not shown.
Binary file removed
BIN
-1.13 KB
astroai/models/cnn_regressor/regressor_5sgm_filter2_4convs_dense10_history.npy
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.