Coder Social home page Coder Social logo

hepml's Introduction

hepML

A package for machine learning studies with HEP

When installing make sure to initialise and update the submodule:

  • git submodule init

  • git submodule update

Start by turning your root trees into numpy arrays! Then carry out some python based data analysis.

Setup with anaconda:

  • Install anaconda v4 (I couldn't get it to work with v5) e.g. using

    • bash /nfs/dust/cms/user/elwoodad/Anaconda2-4.4.0-Linux-x86_64.sh

    • choose whether you want anaconda added to bashrc, overwriting system default packages (i didn't)

    • point the anacondaSetup.sh file to your install (see mine as example)

  • Make a conda environment with all the software you'll need (hepML)

    • When running on the naf you can do:

    • conda env create -f environment.yml

    • Or you can do a generic install of all the relevant tools (e.g. on maxwell max-display):

    • conda create -n hepML -c nlesc root root_numpy keras pandas seaborn scikit-learn tensorflow tensorflow-gpu pydot

    • Only include tensorflow-gpu if a graphics card is available, otherwise there can be errors

    • NOTE: I've had problems on some systems getting root to install, so you can optionally leave out root and root_numpy if there is an error and install them separately

    • root and numpy are installed using instructions in https://nlesc.gitbooks.io/cern-root-conda-recipes/content/index.html , but the environment file should do everything

  • Activate your environment and you're good to go

    • source activate hepML

An example script showing off some of the basic features is available:

  • python exampleScript.py

A more sophisticated script that produced the results in https://arxiv.org/abs/1806.00322 is available:

  • python run.py

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.