Skip to content

Instantly share code, notes, and snippets.

View mickypaganini's full-sized avatar

Michela Paganini mickypaganini

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mickypaganini
mickypaganini / test_full_highway.ipynb
Created May 10, 2016 14:16
Test full Highway for lwtnn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mickypaganini
mickypaganini / gru_test.ipynb
Created May 8, 2016 21:18
GRU test for lwtnn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mickypaganini
mickypaganini / TestDense&HW.ipynb
Created May 7, 2016 19:13
Test Dense and Highway layers in Keras using the same inputs as in our lwtnn-test-highway.cxx
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -- branches I'm interested in out of all the ones in the df
branches = ['jet_pt', 'abs(jet_eta)',
'jet_phi', 'jet_ip3', 'jet_ip3_c',
'jet_ip3_cu', 'jet_ip2', 'jet_ip2_c',
'jet_ip2_cu', 'jet_sv1_ntrkv',
'jet_sv1_m', 'jet_sv1_efc', 'jet_sv1_n2t']
# -- QUICK WAY:
start = 0
unflattened = [test_df[b] for b in branches]
from root_numpy.tmva import add_classification_events, evaluate_reader
from rootpy.io import root_open
from rootpy import stl, log
from rootpy.tree import Tree
from rootpy.vector import Vector3, LorentzVector
from ROOT import TMVA, TFile
import xml.etree.ElementTree as ET
from array import array
import pandas as pd
import pandautils as pup
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mickypaganini
mickypaganini / non_param_fit.ipynb
Created December 18, 2015 10:08
Non-parametric curve fitting using Kernel Density Estimation and peak finding
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mickypaganini
mickypaganini / set_atlas.py
Created December 18, 2015 09:53
Set ATLAS style while plotting in matplotlib
from rootpy.plotting.style import set_style
set_style('ATLAS', mpl=True)