Coder Social home page Coder Social logo

tmva-tutorial's Introduction

TMVA Tutorial

These are tutorials on TMVA given at workshops and Machine Learning events in 2017 and 2018

The most recent one has been given at the 1st Terascale School on Machine Learning at Desy, see agenda at https://indico.desy.de/indico/event/21278/

The tutorials consist of notebook which can be run on SWAN ( https://swan.cern.ch )

In order to run the tutorial we recommend that you:

  1. Open a Terminal in SWAN
  2. Clone your repository (it will appear in your cernbox folder)
git clone  https://github.com/lmoneta/tmva-tutorial.git
  • The tutorials will be in the directory notebooks. Older tutorials could be retrieved using the corresponding git branches

  • The notebooks used in this tutorial use either C++ or Python. Python notebooks have the suffix _py appended to their name. In some case a corresponding ROOT macro is available, which can run directly from the ROOT prompt. The macro are just an example how one can create easly a ROOT macro or a Python script from a given C++ or Python based notebook.

  • More notebooks, some written also in Python, are available in the Machine Learning Gallery of SWAN, https://swan.web.cern.ch/content/machine-learning

  • Additional tutorials of TMVA are available in the tutorials/tmva directory of the main ROOT git repository. You can find them also here https://root.cern.ch/doc/master/group__tutorial__tmva.html

  • The updated TMVA Users Guide is available at https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf

Swan and Jupyter notebooks quick start

If you have never used jupyter notebooks, you can find some quickstart information at the following links What is a jupyter notebook?, Notebook Basics, Running Code.

For information on using SWAN, see the SWAN website: https://swan.web.cern.ch In a nutshell, "SWAN (Service for Web based ANalysis) is a platform to perform interactive data analysis in the cloud". It gives you access to the LCG software stacks and to your CERNBOX files.

  • You need to have an active CERNBOX to use swan (https://cernbox.cern.ch/). If you don't have a CERN account, please contact us directly and some temporary accounts can be made available. In that case you need to feel this form to get access to the account, https://docs.google.com/forms/d/1ed4LsFBg9BmAHvfWYJDL4Svdmfk-tB-xbIyIxMPUmuc/ We will provide you the account name and password.

  • For using the new Deep Learning features of TMVA (e.g. CNN) one needs now to use the Development Bleeding Edge Version of SWAN which is built using the current ROOT master version.

  • If you think think the Jupyter notebook is stuck, open a terminal on swan and execute top: if the cpu is not being used (0%) by any of your processes, you may have to restart the Jupyter kernel.

IMPORTANT:

  • Please only have one notebook at the time on swan (you have to select the "running" tab and shutdown the notebook when done)
  • Limit the number of events you use on swan (order 10000-100000) and the avoid expensive methods: SWAN is meant for fast prototyping.
    • Each swan container has 2 GB of ram assigned, using a dataset with too many events may hit the memory limit.

tmva-tutorial's People

Contributors

lmoneta 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.