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
# Prompt engineering (lol) | |
txtblk='\e[0;30m' # Black - Regular | |
txtred='\e[0;31m' # Red | |
txtgrn='\e[0;32m' # Green | |
txtylw='\e[0;33m' # Yellow | |
txtblu='\e[0;34m' # Blue | |
txtpur='\e[0;35m' # Purple | |
txtcyn='\e[0;36m' # Cyan | |
txtwht='\e[0;37m' # White | |
bldblk='\e[1;30m' # Black - Bold |
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
4.98743183784163, 3.242882208849849e-45 | |
5.41757730409189, 2.5639342424954795e-45 | |
5.929245813790426, 1.8227568748934064e-45 | |
6.368370281644919, 1.4171538600338277e-45 | |
6.917616004316876, 1.0654433531884926e-45 | |
7.429939922419951, 8.376776400682993e-46 | |
7.861071813991824, 6.772815277441482e-46 | |
8.317220692224582, 5.66286798429281e-46 | |
8.73390557078128, 4.708412390718673e-46 | |
9.240701758752962, 3.849684169817995e-46 |
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
from vbfml.input.sequences import MultiDatasetSequence,DatasetInfo | |
mds = MultiDatasetSequence( | |
batch_size=10, | |
branches=["EventImage_pixelsAfterPUPPI"] | |
) | |
dataset = DatasetInfo( | |
name="test", | |
files=["merged_2017_train.root"], |
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 sys | |
import tensorflow as tf | |
from tabulate import tabulate | |
from tqdm import tqdm | |
from vbfml.training.data import TrainingLoader | |
loader = TrainingLoader(sys.argv[1]) | |
history = loader.get_history() |
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
commit b5e510e6d95d3a676149f3837bdcfb3c3e49716b | |
Author: Kevin Pedro <kpedro88@gmail.com> | |
Date: Wed May 1 11:25:13 2019 -0500 | |
import specific Era in tracked cmsRun configs | |
commit 40d61539e972678f86c65f96876b953ee395c8d2 | |
Author: Suchandra <Suchandra.Dutta@cern.ch mailto:Suchandra.Dutta@cern.ch> | |
Date: Fri Nov 30 16:48:53 2018 +0100 |
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 | |
from hepdata_lib import Submission, Table, Variable | |
sub = Submission() | |
tab = Table("test") | |
x = Variable("x", is_independent=True, is_binned=False) | |
y1 = Variable("y", is_independent=False, is_binned=False) | |
y2 = Variable("y", is_independent=False, is_binned=False) | |
phi = np.linspace(0,2*np.pi, 50) |
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
#include<TFile.h> | |
#include<include/cxxopts.hpp> | |
#include<interface/ModuleTTreeUnpacker.h> | |
#include<interface/QCoreFactory.h> | |
#include<interface/RD53StreamEncoder.h> | |
#include<interface/AuroraFormatter.h> | |
using namespace std; |
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 FWCore.ParameterSet.Config as cms | |
from FWCore.ParameterSet.VarParsing import VarParsing | |
from Configuration.StandardSequences.Eras import eras | |
options = VarParsing('analysis') | |
options.register( | |
"year", | |
None, | |
VarParsing.multiplicity.singleton, | |
VarParsing.varType.int, |
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 FWCore.ParameterSet.Config as cms | |
# link to card: | |
# https://github.com/cms-sw/genproductions/blob/master/bin/Powheg/production/2017/13TeV/Higgs/gg_H_quark-mass-effects_NNPDF31_13TeV/gg_H_quark-mass-effects_NNPDF31_13TeV_template.input | |
externalLHEProducer = cms.EDProducer("ExternalLHEProducer", | |
args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/2017/13TeV/powheg/V2/gg_H_quark-mass-effects_NNPDF31_13TeV_M125/v1/gg_H_quark-mass-effects_NNPDF31_13TeV_M125_slc6_amd64_gcc630_CMSSW_9_3_0.tgz'), | |
nEvents = cms.untracked.uint32(5000), | |
numberOfParameters = cms.uint32(1), | |
outputFile = cms.string('cmsgrid_final.lhe'), |
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
from hepdata_lib import Table, Submission, Variable | |
sub = Submission() | |
table = Table("table") | |
v = Variable("test_variable",is_binned=False, is_independent=True) | |
v.values = [1, "label"] | |
v2 = Variable("test_variable2",is_binned=False, is_independent=False) |
NewerOlder