Git Product home page Git Product logo

l1trigger_vae's Introduction

Variational Autoencoder

This repository contains the necessary scripts to convert specifically formatted Root files to binary hdf5 files for training, as well as Jupyter notebooks to train a basic VAE architecture and analyse its performance with the relevant datasets. Please view the environment.yml file to download the relevant python libraries to load all the project contents (including tensorflow).

Preparing the Training/Testing Data

To prepare the initial data, one should use the convert_to_h5.py script. The syntax necessary to run it is as follows:

''' python convert_to_h5.py --input-file INPUT ROOT FILE NAME -- output-file PICK YOUR FAVOURITE OUTPUT FILE NAME.hdf5 '''

Note that this script expects that the root file analysed has a tree name with the relevant region data called 'l1UpgradeEmuTree/L1UpgradeTree'. If this directory is not within the ROOT file and does not contain the TTrees 'vRegionEt','vRegionEta','vRegionPhi', then it will need to be modified.

Training and Testing the Network

The notebook ZeroBias_VAE.ipynb contains all the steps necessary to initialise, train and test a basic VAE on pre-prepared training/testing hdf5 datasets.

Plotting the Data

We have also included another plotting script VAE_Plotting_Script.ipynb to plot the resulting training and testing data (in particular, the loss values) from the original network.

l1trigger_vae's People

Contributors

roy-physics 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.