Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding neural network inference to NMMA (#370)
* Update analysis.py changed main to have a neural net option * Update analysis.py started adding nn analysis function * Create embedding.py * Create resnet.py * Create normalizingflows.py * Create dataprocessing.py * Update analysis.py * Update analysis.py * Update analysis.py indentation error * Update analysis.py added missing colon * Update analysis.py added print statements * Update analysis.py fixed indentation * Update analysis.py commented out code for debugging * Update analysis.py removed all added code * Update analysis.py adding print statements * Update analysis.py changed logic in def main * Update normalizingflows.py defined num points * Update analysis.py added missing colon * Update analysis.py changed main function * Update analysis.py uncommented filter requirements * Update analysis.py added print statement * Update analysis.py added dt logic * Update analysis.py set up logger and outdir * Update analysis.py changed tmin tmax logic * Update analysis.py added tmin, tmax, num points, current points * Update analysis.py adding injection file option * Update analysis.py changed print statement * Update analysis.py fixed typo * Update analysis.py light curve generation * Update analysis.py adding print statements * Update analysis.py missing parenthesis * Update analysis.py added point specification * Update analysis.py creating dataframe * Update analysis.py formatting data into df needed for further analysis * Update analysis.py fixed indentation * Update analysis.py debugging * Update analysis.py debugging * Update analysis.py * Update analysis.py debugging * Update analysis.py making df * Update analysis.py fixed syntax error * Update analysis.py added detection limit arg logic * Update analysis.py made pre padding dict and df * Update analysis.py syntax error * Update analysis.py checking padding functionality * Update dataprocessing.py made filler functions more flexible to other dataframes, removed column hardcoding * Update analysis.py importing padding functions * added mlmodel * Delete mlmodel directory delete copy * Update analysis.py importing data processing functions * Update requirements.txt added nflows package * Update requirements.txt added nflows, torch * Update dataprocessing.py change variable names * Update analysis.py finished data padding * Update requirements.txt * Update requirements.txt * Update requirements.txt can't install torch * Update requirements.txt reverted back to original requirements * Update analysis.py added imports * Update analysis.py importing resnet * Update analysis.py importing more functions * Update analysis.py added functionality for inference * Create inference.py * Update analysis.py added more checks and arg functionality * Update analysis.py added functionality if injection parameters are provided * Update inference.py added functionality if truth is not available. * Update inference.py fixed syntax error * Update inference.py fixed variable name error * Update analysis.py * Update dataprocessing.py * Update embedding.py * Update normalizingflows.py * Update analysis.py fixed syntax error * Update analysis.py made column list an arg of pad the data func * Update dataprocessing.py made column list an arg for padding functions * Update analysis.py added print statements * Update analysis.py * Add files via upload adding similarity embedding weights * Add files via upload normalizing flow weights * Update analysis.py updated weights filepath * Update analysis.py added context features * Update analysis.py added flow * Update analysis.py typo in flow weight path * Update analysis.py fixed logic * Update analysis.py saving corner plot * Update analysis.py more savefig args added * Update analysis.py debugging save plot issue * Update analysis.py import matplotlib pyplot * Update analysis.py trying to save figure * Update analysis.py fixed savepath * Update analysis.py * Update analysis.py removing print statements * Update analysis.py making sure filters is defined * Update analysis.py * Update analysis.py * Update analysis.py * Update analysis.py debugging * Update analysis.py adding exceptions * Update analysis.py * Create ml_requirements.txt * Create lfi_analysis.md * Update lfi_analysis.md added cli examples * Update lfi_analysis.md added instructions for setting up env * Update analysis.py added test function for nn_analysis * Update continous_integration.yml * Update continous_integration.yml * Update analysis.py * add lfi to toctree * local_only to False in nn * add injection file and injection path * update pyproject and add torchvision to req --------- Co-authored-by: Sahil Jhawar <55475299+sahiljhawar@users.noreply.github.com> Co-authored-by: Sahil Jhawar <sahil.jhawar448@gmail.com>
- Loading branch information