Giter VIP home page Giter VIP logo

kktrain's Introduction

KKTrain

This repository holds the scripts used to train the ANNs used in the KinKal track fitting adapter for the Mu2e experiment

The first step to run the notebook is to install a kernel that includes support for everything listed in requirements.txt. For working on nersc, see https://docs.nersc.gov/services/jupyter/#conda-environments-as-kernels Then, you can load a particular notebook. Note that data is stored on NERSC in: /global/cfs/cdirs/m3712/Mu2e/TrkAna

TrainBkg.ipynb is used to separate true electron track hits from those generated by background particles TrainLRDrift.ipynb is used to separate hits which have accurate drift information, including left-right sign, from hits with either poor drift measurement (due to ion cluster effects) or an ambiguous left-right sign.

Install

The first step to run the notebook is to install mamba (or conda) and JupyterLab. I personally prefer mamba. Installation packages are available here.

Once you have installed Mamba, you can install JupyterLab with:

mamba install -c conda-forge jupyterlab

Now, we need to create an environment containing the packages required by the tutorial. In the KKTrain directory run:

mamba create -n KKTrain -c conda-forge --file requirements.txt

This will create a KKTrain environment. In order to access it you can run

mamba activate KKTrain

We then want to add this environment to the list of kernels available to JupyterLab:

python -m ipykernel install --user --name KKTrain --display-name KKTrain

Now, go back to your base environment and launch JupyterLab:

mamba activate base
jupyterlab

In order to use the KKTrain environment you just created select "KKTrain" in the list of kernels in the upper right part of the interface. Then select one of the training scripts to run from the file browser.

kktrain's People

Contributors

brownd1978 avatar jnzhao3 avatar talia-s avatar myucel-fnal 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.