Git Product home page Git Product logo

wavelearn_release's Introduction

wavelearn_release

This code is not recommended for general CTA use, and is provided for legacy purposes only. For further machine learning research we recommend either CTLearn https://github.com/ctlearn-project/ctlearn or Gammalearn https://gitlab.lapp.in2p3.fr/GammaLearn/GammaLearn. This code is provided as is.

These scripts rely on an outdated version of ctapipe (v0.6.1) (see https://github.com/cta-observatory/ctapipe/tree/master/ctapipe) which is still under rapid development.

The folder dirac_submit contains scripts to submit the .simtel.gz to hdf5 converter code (including calibration, parameter extraction and data mixing) simtel_writer_dirac.py to CTA-Dirac. Note that there are numerous complications involved with merging together proton,gamma and electron events on the grid, namely that there wind up being multiple 'runxx.simtel.gz' files with differing particles but the same name. As such, we use a lists of existing grid simtel files (i.e. 'proton_list_*.txt' to log existing files (as runs to generate simtel files can easily fail) and a cipher file (cipher.npy) to merge them together. simtel_writer.py is an equivalent script to run locally.

paramlstm.py is the main Convlstm training script where the network architecture is defined. Note that numerous aspects are hardcoded, such as compatibility only with CHEC prod3b simulations. net_utils.py contains plotting and data generation functions needed for paramlstm.py. es.py is the version with modified early stopping criteria as described in the paper. Separation of files into training/testing/validation data is performed by a cut on a filelist that must be the same in both paramlstm.py and net_utils.py. The different methods in the paper are implemented by changing the elements of the array ta2 and by changing the network input size in paramlstm.py as required.

The folder Models contains pre-trained hdf5 models for the methods presented in the paper, and the folder fprtpr contains calculated fpr and tpr values for recreating ROC curves.

plotmaker.py, abd.py, chargechecker.py, modhyp.py, accES.py and acclossplotter.py are helper scripts to recreate the plots in the paper.

Figures showing complete confusion matricies for the eight original training runs in the paper can be found in the folder additionalfigures.

wavelearn_release's People

Contributors

stspencer avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.