Code Monkey home page Code Monkey logo

cs281_mlphys's Introduction

CS281 Project

Use NN to learn physics variables for signal selection and background rejection

by Nicolò Foppiani, Jonah Philion, and Tony Tong

Reference: ATLAS WWW paper in 8 TeV

0) Setup Environment

source setup.sh

This script will activate the environment I generally use on odyssey. Let me know if you want to pip install something before you pip install it. It would be good to create a specialized environment just for this project later.

1) Acquire Data

To convert the monte carlo root files to csvs, first make a directory outside your clone, then use acquire.py to fill this directory. For instance:

mkdir ../data

python acquire.py -i /n/atlasfs/atlascode/backedup/btong/WWW/Analysis/Output/ML/ -o ../data/

The above is hopefully the only time you have to convert anything to csv. However, in the future, if you only want to convert only certain root files and want to save each file with a tag, use a command like

python acquire.py -i /n/atlasfs/atlascode/backedup/btong/WWW/Analysis/Output/ML/ -o ../data/ -mcs 'bkg_ttZ0 bkg_WZqqll signal_WmWpWm' -ext 'Run1'

2) Train and Analyze a Model

An example training script is included in train.py. You may have to change the data directory to run this script. I didn't spend time making this script clean because for now everyone should build their own train.py suited to their needs.

python train.py

cs281_mlphys's People

Contributors

tongbaojia avatar nfoppiani avatar jonahthelion avatar

Watchers

James Cloos avatar  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.