-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overhaul metrics #951
overhaul metrics #951
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #951 +/- ##
==========================================
- Coverage 92.84% 92.53% -0.32%
==========================================
Files 24 23 -1
Lines 2895 2920 +25
==========================================
+ Hits 2688 2702 +14
- Misses 207 218 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* moved dist_param_groups to VariationalGrid * now Encoder takes a VariationalGridMaker instance * rename 'layers' to 'detections' * forgot to add variational_grid.py * renaming. VariationalGridMaker -> VariationalDistSpec; pred -> factor * require magnitudes to match too in CatalogMetrics * remove tile matching; improve metrics * tests passing with some hacky stuff * update does it all * only compute galsim param error if there are galaxies * fixed tests * remove sklearn dependence in metrics * don't couple metrics and vardist just to access GALSIM_NAMES * manage metrics manually * remove gal_fp and star_fp * f1 -> detection_f1 * computing recall and precision per magnitude bin * MetricCollection * added plotting routine to show detection performance binned by magnitude * exclude last magnitude bin
* moved dist_param_groups to VariationalGrid * now Encoder takes a VariationalGridMaker instance * rename 'layers' to 'detections' * forgot to add variational_grid.py * renaming. VariationalGridMaker -> VariationalDistSpec; pred -> factor * require magnitudes to match too in CatalogMetrics * remove tile matching; improve metrics * tests passing with some hacky stuff * update does it all * only compute galsim param error if there are galaxies * fixed tests * remove sklearn dependence in metrics * don't couple metrics and vardist just to access GALSIM_NAMES * manage metrics manually * remove gal_fp and star_fp * f1 -> detection_f1 * computing recall and precision per magnitude bin * MetricCollection * added plotting routine to show detection performance binned by magnitude * exclude last magnitude bin
* moved dist_param_groups to VariationalGrid * now Encoder takes a VariationalGridMaker instance * rename 'layers' to 'detections' * forgot to add variational_grid.py * renaming. VariationalGridMaker -> VariationalDistSpec; pred -> factor * require magnitudes to match too in CatalogMetrics * remove tile matching; improve metrics * tests passing with some hacky stuff * update does it all * only compute galsim param error if there are galaxies * fixed tests * remove sklearn dependence in metrics * don't couple metrics and vardist just to access GALSIM_NAMES * manage metrics manually * remove gal_fp and star_fp * f1 -> detection_f1 * computing recall and precision per magnitude bin * MetricCollection * added plotting routine to show detection performance binned by magnitude * exclude last magnitude bin
* Initial commit. * Add __target__ under prior param targeting GalaxyClusterPrior in galaxy_clustering case study. * Create galaxy_clustering.md * Rename galaxy_clustering.md to README.md * Update README.md * Update README.md test commit * Commit prior for clustering. Wait for further action. Need to merge tensors and modification on pipeline. Lack of optimization and is only first draft. * Add files via upload * Update and rename cluster_prior.py to prior_cluster.py * Add files via upload * Update README.md * Update README.md * Update README.md Add formating and improve readability. * Update cluster_prior.py * Update README.md * Update prior_cluster.py * Update cluster_prior.py * overhaul metrics (#951) * moved dist_param_groups to VariationalGrid * now Encoder takes a VariationalGridMaker instance * rename 'layers' to 'detections' * forgot to add variational_grid.py * renaming. VariationalGridMaker -> VariationalDistSpec; pred -> factor * require magnitudes to match too in CatalogMetrics * remove tile matching; improve metrics * tests passing with some hacky stuff * update does it all * only compute galsim param error if there are galaxies * fixed tests * remove sklearn dependence in metrics * don't couple metrics and vardist just to access GALSIM_NAMES * manage metrics manually * remove gal_fp and star_fp * f1 -> detection_f1 * computing recall and precision per magnitude bin * MetricCollection * added plotting routine to show detection performance binned by magnitude * exclude last magnitude bin * Add initial prior file for case study containing GalaxyClusterPrior class that inherits from CatalogPrior. * Remove dependence on prior_cluster.py and m2_config. Add inheritance class GalaxyClusterPrior. Support gaussian galaxy shape and identical r-band cluster. * Add visulization for cluster. Bound the locs. * Minor modification. Bound the locs of cluster. * Implementation based on Alex. * Generic modeling to creates image. * Allow converting catalog to tile. * Catalog to Tile functionality. * Duplicate with generic modeling. * Update distributions. * Multithreading implemented. * Multithreading rendering images. * Close plt to clear memory. * Summarized into a class. * Summarized into a class. * Encoder using simplenet. * Added muti processing. * Basic principle verfication. * Update README.md * Update README.md Remove old TODOs * L1 and Gaussian NLL for location. * Fix broken notebook. * Galaxy/Non galaxy, NFW, flux ratio, redshift fix. * Add radially distribition for locations. * Minor fix * Remove debug print * Fix minor exist issue. * Updated encoder for cluster/non-cluster * Removed all synthetic related calls. * more thorough M2 case study (#953) * use_checkerboard flag * mode and sample metrics * new prior elicitation case study * new m2 prior: adds location parameter * renaming truncated Pareto parameters * mean sources = 0.9 * minor * log val metrics under val * todo notes * black --diff pre-commit * HST 15% off, not 22%? * don't log trainer output on prediction * fix m2 mean_sources rate; replace truncated Pareto with scipy implementation * two point correlation metric sort of working * minor * minor * tests passing; about to do 419GB training run * updated dependent tiling case studies; corrected two point correlation metric * reverting mean_sources...how did I get it so wrong? * minor * moving_star.ipynb producing all figures needed (?) * improving m2 case study * add dc2 script (#956) * add dc2 script * fix some bugs * add dc2 plots * fix minor bugs --------- Co-authored-by: Xinyue Li <[email protected]> * Adding script for multiband paper experiments (#952) * multiband script - fixing classification plot bugs * adding forgotten script * case study runs e2e * Notebooks run - script runs end to end --------- Co-authored-by: Sawan Patel <[email protected]> Co-authored-by: Jeffrey Regier <[email protected]> * Removed deconvolution (#970) fix style fix test_simulate * Update Installation.rst (#972) * Resolve pull request review conflict * Add support for multiple color bands in GalSim. * Resolve hmf dependency. * Remove magnitudes from catalog, implement suggested fixes. --------- Co-authored-by: Gabriel Alfonso Patron Herrera <[email protected]> Co-authored-by: gapatron <[email protected]> Co-authored-by: gapatron <[email protected]> Co-authored-by: wadwa <[email protected]> Co-authored-by: Jeffrey Regier <[email protected]> Co-authored-by: shihangl <[email protected]> Co-authored-by: Ishan Kapnadak <[email protected]> Co-authored-by: Jeffrey Regier <[email protected]> Co-authored-by: XinyueLi1012 <[email protected]> Co-authored-by: Xinyue Li <[email protected]> Co-authored-by: Sawan Patel <[email protected]> Co-authored-by: Sawan Patel <[email protected]> Co-authored-by: Aakash Patel <[email protected]> Co-authored-by: Jackson Loper <[email protected]>
* Initial commit. * Add __target__ under prior param targeting GalaxyClusterPrior in galaxy_clustering case study. * Create galaxy_clustering.md * Rename galaxy_clustering.md to README.md * Update README.md * Update README.md test commit * Commit prior for clustering. Wait for further action. Need to merge tensors and modification on pipeline. Lack of optimization and is only first draft. * Add files via upload * Update and rename cluster_prior.py to prior_cluster.py * Add files via upload * Update README.md * Update README.md * Update README.md Add formating and improve readability. * Update cluster_prior.py * Update README.md * Update prior_cluster.py * Update cluster_prior.py * overhaul metrics (#951) * moved dist_param_groups to VariationalGrid * now Encoder takes a VariationalGridMaker instance * rename 'layers' to 'detections' * forgot to add variational_grid.py * renaming. VariationalGridMaker -> VariationalDistSpec; pred -> factor * require magnitudes to match too in CatalogMetrics * remove tile matching; improve metrics * tests passing with some hacky stuff * update does it all * only compute galsim param error if there are galaxies * fixed tests * remove sklearn dependence in metrics * don't couple metrics and vardist just to access GALSIM_NAMES * manage metrics manually * remove gal_fp and star_fp * f1 -> detection_f1 * computing recall and precision per magnitude bin * MetricCollection * added plotting routine to show detection performance binned by magnitude * exclude last magnitude bin * Add initial prior file for case study containing GalaxyClusterPrior class that inherits from CatalogPrior. * Remove dependence on prior_cluster.py and m2_config. Add inheritance class GalaxyClusterPrior. Support gaussian galaxy shape and identical r-band cluster. * Add visulization for cluster. Bound the locs. * Minor modification. Bound the locs of cluster. * Implementation based on Alex. * Generic modeling to creates image. * Allow converting catalog to tile. * Catalog to Tile functionality. * Duplicate with generic modeling. * Update distributions. * Multithreading implemented. * Multithreading rendering images. * Close plt to clear memory. * Summarized into a class. * Summarized into a class. * Encoder using simplenet. * Added muti processing. * Basic principle verfication. * Update README.md * Update README.md Remove old TODOs * L1 and Gaussian NLL for location. * Fix broken notebook. * Galaxy/Non galaxy, NFW, flux ratio, redshift fix. * Add radially distribition for locations. * Minor fix * Remove debug print * Fix minor exist issue. * Updated encoder for cluster/non-cluster * Removed all synthetic related calls. * more thorough M2 case study (#953) * use_checkerboard flag * mode and sample metrics * new prior elicitation case study * new m2 prior: adds location parameter * renaming truncated Pareto parameters * mean sources = 0.9 * minor * log val metrics under val * todo notes * black --diff pre-commit * HST 15% off, not 22%? * don't log trainer output on prediction * fix m2 mean_sources rate; replace truncated Pareto with scipy implementation * two point correlation metric sort of working * minor * minor * tests passing; about to do 419GB training run * updated dependent tiling case studies; corrected two point correlation metric * reverting mean_sources...how did I get it so wrong? * minor * moving_star.ipynb producing all figures needed (?) * improving m2 case study * add dc2 script (#956) * add dc2 script * fix some bugs * add dc2 plots * fix minor bugs --------- Co-authored-by: Xinyue Li <[email protected]> * Adding script for multiband paper experiments (#952) * multiband script - fixing classification plot bugs * adding forgotten script * case study runs e2e * Notebooks run - script runs end to end --------- Co-authored-by: Sawan Patel <[email protected]> Co-authored-by: Jeffrey Regier <[email protected]> * Removed deconvolution (#970) fix style fix test_simulate * Update Installation.rst (#972) * Resolve pull request review conflict * Add support for multiple color bands in GalSim. * Resolve hmf dependency. * Remove magnitudes from catalog, implement suggested fixes. * Add bash script for data generation. * Rename config file. * Add membership column to catalogs. * Modify generation script to use current working directory. * General directory cleanup. * Add number of files as argument. * Remove pickle file from directory. * Add padding to catalogs. * Clean up directory for merge. * Add padding to catalogs. * Add .pkl color model again to dir. * Catalogs Test notebok. initial commit. * Modify TileCatalog to allow new params. * Add initial Cluster Membership Accuracy Metric. * GalaxyCluster Simulated Dataset. Initial commit. * Directory cleanup after merge with master. * Define variational distribution for galaxy clusters. Temporarily, only defined for galxy membership to cluster. Initial commit. * Rename ClusterPrior to GalaxyClusterPrior. * Correct import statements from ClusterPrior to GalaxyClusterPrior. * Change name of GalaxyClusterSimulatedDataset to GalaxyClusterCachedSimulatedDataset. * Add cached_simulator to config file. Remains to test running through main's train function. * Add metrics class for cluster membership. * Add tile catalog to simulated dataset. * Add script for converting data to file datums. * Fix Cached Dataset path in config. * Reformat directory. Update generation scripts. * Modify generation scripts to dump data in new subdirectory. * Fixed plocs. Removed padding. * Add/modify config params * Subclass from pl.LightningDataModule to solve for instatiation errors in Hydra. * Overhaul the cached simulated dataset class so it behaves and reads-in data like CachedDataSimulator, making the subclass more or less redundant, but I leave in favor of sticking to the modular spirit of BLISS, which I believe to be beneficial. * Add additional Encoder params to galaxy_clustering config. * Fix membership dictionary key. * Change config and simulated dataset. * Modify TileCatalog allowed params. Modify file format. Debug encoder. * Modify image size to 1200x1200. Ignore backgrounds in ImageNormalizer. Fix variational_dist. * Overhaul data generation process by adding keyword arguments. Modify README with instructions. * Update README.md. * Update README.md. * Fix prior to take care of small images. * Add 16-bit mixed precision to trainer config. * Remove print statements. * Join 'galaxy_params' into one 4D tensor. * Modify tile_slen to match the one in the file_data created (tile_slen=4) and also add metrics to Encoder * Fix membership tensor to have appropriate shape. * Change ClusterMembershiAccuracy Metric membership tensors to Bool type tensors, so they support '~' Boolean operation. * comment out metrics update. in update_metrics. * Add if self.log_transform_stdevs to get_input_tensor to avoid entering loop when the value is None. * Change training 16-mixed to 32-true precision as we were getting Nans. * Remove galaxy shape metric. * Modified prior to include clusters for small images. * Filter out galaxies. Keep 1 source per tile. * Fixed variational distribution to handle batched images. * Modify README to include more information about data generation. * Bring everything up-to-date. * Run pre-commit checks. * Remove simulated dataset. * Keep only membership in allowed params. * Re-add metrics. * Restore poetry.lock * Disable duplicate code checks in pylint. --------- Co-authored-by: Gabriel Alfonso Patron Herrera <[email protected]> Co-authored-by: gapatron <[email protected]> Co-authored-by: gapatron <[email protected]> Co-authored-by: wadwa <[email protected]> Co-authored-by: Jeffrey Regier <[email protected]> Co-authored-by: shihangl <[email protected]> Co-authored-by: Jeffrey Regier <[email protected]> Co-authored-by: XinyueLi1012 <[email protected]> Co-authored-by: Xinyue Li <[email protected]> Co-authored-by: Sawan Patel <[email protected]> Co-authored-by: Sawan Patel <[email protected]> Co-authored-by: Aakash Patel <[email protected]> Co-authored-by: Jackson Loper <[email protected]>
No description provided.