This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import mplhep as hep | |
mlp_data = { | |
"W2A2": [2.7 * 10**6, 86.2], | |
"W3A3": [4.2 * 10**6, 89.7], | |
"W8A8": [1.8 * 10**7, 90.5], | |
"FP": [2.8 * 10**8, 90.4], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import random as rnd | |
import hls4ml | |
from tensorflow.keras.layers import Conv2D, MaxPooling2D, BatchNormalization | |
from qkeras.qconvolutional import QConv2D | |
from qkeras.quantizers import quantized_bits, quantized_relu | |
from tensorflow.keras.models import Sequential | |
from qkeras import QActivation | |
height = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
import os | |
import logging | |
logging.basicConfig(level=logging.DEBUG, format='[%(asctime)s] %(levelname)s: %(message)s') | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_jsd_limit(frame=[], epsilonB=0.1): | |
ndatapoints = 100 | |
mmin = 40 | |
mmax = 200 | |
nbins = 8 | |
frame = frame.loc[frame['truthQCD'] == 1] | |
N = len(frame) | |
nB = N*epsilonB |