Coder Social home page Coder Social logo

ashrafkasem / adversarialsubstructure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pkontaxa/adversarialsubstructure

0.0 1.0 0.0 18 KB

(DEPRECATED) Construct optimal, mass-independent combination of jet substructure variables using adversarial neural networks.

Python 100.00%

adversarialsubstructure's Introduction

AdversarialSubstructure

This package allows for the combination of several jet substructure variables into a single tagger which is designed to be pivotal with respect to mass of the jet, i.e. independent hereof, using an adversarial neural network (ANN). This approach is inspired by [1].

The ANN consists of a classifier and a discriminator:

  • classifier: trained to perform optimal separation of signal and background, based on the available high-level jet substructure features;
  • discriminator: trained to construct a posterior probability distribution for the jet mass, based on the classifier output.

In the adversarial training, this means that the discriminator tries to "guess" the jet mass from the classifier output, and the classifier tries to makes this task as hard as possible, while retaining as much separating power as possible.

Contents

This package contains the following files:

  • models.py, containing the definition of the classifier-, discriminator-, and the combined adverarial neural network model;
  • layers.py, containing the custom class for the posterior probability layer of the discriminator model;
  • train.py, which performs the training of the ANN and stores the weights of the trained classifier and discriminator models to file. Use as
python train.py path/to/data/*.root
python plotting.py path/to/data/*.root
  • utils.py, which contains a few common utility functions, including getData which reads training data from ROOT files. Consult for details about the assumed TTree structure.

Dependencies

This packages relies on Keras for implementing the neural networks; numpy for handling and manipulating data; scikit-learn for data preprocessing; matplotlib for plotting; and ROOT for storing the data to be read and trained on. Finally the scripts in snippets are used for reading in data.

References

[1] G. Louppe, M. Kagan, and K.Cranmer. Learning to Pivot with Adversarial Networks. arXiv:1611.01046

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.