CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
isotrackTrainRegressor Namespace Reference

Functions

def fac0
 
def fac1
 
def fac2
 
def propweights
 

Variables

tuple _ = plt.plot(lims, lims)
 
list a0 = [0.973, 0.998, 0.992, 0.965 ]
 marinas correction form More...
 
list a1 = [0, -0.318, -0.261, -0.406]
 
list a2 = [0, 0, 0.047, 0.089]
 
list cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal_x']
 
 data = df.values
 
tuple df = pd.read_pickle(fName)
 
tuple dop = (X_test[:,16]/X_test[:,13])
 
tuple eop = (X_test[:,15]/X_test[:,13])
 
tuple fName = parser.parse_args()
 
tuple history = model.fit(X_train,Y_train , batch_size=5000, epochs=100, validation_split=0.2, verbose=1,sample_weight=propweights(Y_train))
 
list keya = []
 
list lims = [0, 200]
 
list marinascorr = X_test[:,15]
 
list maxa = []
 
tuple mcorrval = vec0(abs(X_test[:,17]))
 
tuple meany = np.mean(Y_train)
 
list mina = []
 
tuple model = Sequential()
 
tuple modv = parser.parse_args()
 
int ntest = 20000
 
tuple parser = argparse.ArgumentParser()
 
list pmom = X_test[:,13]
 
tuple preds = model.predict(X_test[:,0:12])
 
tuple RMS = keras.optimizers.RMSprop(lr=0.001, rho=0.9)
 
tuple stdy = np.std(Y_train)
 
list targets = data[:,12]
 
list testindx = data.shape[0]
 
list uncorrected = X_test[:,15]
 
tuple vec0 = np.vectorize(fac0)
 
tuple vec1 = np.vectorize(fac1)
 
tuple vec2 = np.vectorize(fac2)
 
list X_test = data[testindx:,:]
 
list X_train = data[:testindx,0:12]
 
list Y_train = data[:testindx,12]
 

Function Documentation

def isotrackTrainRegressor.fac0 (   jeta)

Definition at line 101 of file isotrackTrainRegressor.py.

Referenced by MonopoleSteppingAction.update().

102 def fac0(jeta):
103  PU_IETA_1 = 9
104  PU_IETA_2 = 16
105  PU_IETA_3 = 25
106  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
return a0[idx]
def isotrackTrainRegressor.fac1 (   jeta)

Definition at line 107 of file isotrackTrainRegressor.py.

Referenced by algorithm(), DDBHMAngular.execute(), and MonopoleSteppingAction.update().

108 def fac1(jeta):
109  PU_IETA_1 = 9
110  PU_IETA_2 = 16
111  PU_IETA_3 = 25
112  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
return a1[idx]
def isotrackTrainRegressor.fac2 (   jeta)

Definition at line 113 of file isotrackTrainRegressor.py.

Referenced by algorithm(), DDBHMAngular.execute(), and MonopoleSteppingAction.update().

114 def fac2(jeta):
115  PU_IETA_1 = 9
116  PU_IETA_2 = 16
117  PU_IETA_3 = 25
118  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
119  return a2[idx]
def isotrackTrainRegressor.propweights (   y_true)

Definition at line 135 of file isotrackTrainRegressor.py.

References funct.abs().

136 def propweights(y_true):
137  weight = np.copy(y_true)
138  weight[abs(y_true - meany) > 0] = 1.90*abs(y_true - meany)/stdy #1.25
139 # weight[abs(y_true - meany) > stdy] = 1.75*abs((weight[abs(y_true - meany) > stdy]) - meany)/(stdy)
140  weight[abs(y_true - meany) < stdy] = 1
141  return weight
142 
143 
144 # In[6]:
145 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Variable Documentation

tuple isotrackTrainRegressor._ = plt.plot(lims, lims)

Definition at line 217 of file isotrackTrainRegressor.py.

Referenced by funct::DecomposeProduct< ProductStruct< A, B >, A >.get(), funct::DecomposeProduct< ProductStruct< A, B >, B >.get(), funct::DecomposePower< A, Numerical< 1 > >.getBase(), cscdqm::Configuration.init(), funct.NUM(), and funct.PROD_S().

list isotrackTrainRegressor.a0 = [0.973, 0.998, 0.992, 0.965 ]

marinas correction form

Definition at line 98 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.a1 = [0, -0.318, -0.261, -0.406]

Definition at line 99 of file isotrackTrainRegressor.py.

Referenced by LA_Filler_Fitter.allAndOne(), MEtoEDM< T >.CheckBinLabels(), DQMTTreeIO::DQMMergeHelper.CheckBinLabels(), dqm::impl::MonitorElement.CheckBinLabels(), HBHENegativeEFilter.checkPassFilter(), FFTJetCorrectorSequence< Jet, InitialConverter, FinalConverter >.correct(), dqm::impl::MonitorElement.divide(), SurveyPxbDicer.doDice(), PulseFitWithShape.doFit(), HcalSimHitsValidation.dPhiWsign(), HcalRecHitsValidation.dPhiWsign(), HcalRecHitsAnalyzer.dPhiWsign(), CMTRawAnalyzer.dPhiWsign(), EcalMatacqAnalyzer.endJob(), VVIObjFDetails.expint(), VVIObjDetails.expint(), sistripvvi::VVIObjDetails.expint(), VVIObj.fcn(), VVIObjF.fcn(), sistripvvi::VVIObj.fcn(), heppy::Davismt2.find_high(), tauImpactParameter::TauA1NuConstrainedFitter.fit(), DTLinearFit.fitNpar(), TFParams.fitpj(), fnc_dscb(), lumi::fPoly.getCorrection(), PhotonMIPHaloTagger.GetMipTrailFit(), tauImpactParameter::TauA1NuConstrainedFitter.getRefitDaughters(), GridInterpolator3DException.GridInterpolator3DException(), HGCalDDDConstants.HGCalDDDConstants(), EvolutionECAL.LightCollectionEfficiency(), EvolutionECAL.LightCollectionEfficiencyWeighted(), TruncatedPyramid.localCorners(), FlatTrd.localCorners(), heppy::Davismt2.mt2_bisect(), heppy::Davismt2.nsols(), GreaterByPtRef< T >.operator()(), GreaterByPtPtr< T >.operator()(), GreaterByEtRef< T >.operator()(), edm.operator+(), operator==(), reco::PFTau3ProngSummary.PFTau3ProngSummary(), HcalSimHitsValidation.phi12(), HcalRecHitsValidation.phi12(), HcalRecHitsAnalyzer.phi12(), CMTRawAnalyzer.phi12(), L1TkFastVertexProducer.produce(), PFTau3ProngReco.produce(), TFParams.pulseShapepj(), TFParams.pulseShapepj2(), FullModelReactionDynamics.Rotate(), SiG4UniversalFluctuation.SampleFluctuations(), LandauFP420.SampleFluctuations(), DTTSCand.setBitsBkmod(), DTSectCollPhCand.setBitsSectColl(), tauImpactParameter::TauA1NuConstrainedFitter.SolveAmbiguityAnalytically(), tauImpactParameter::TauA1NuConstrainedFitter.SolveAmbiguityAnalyticallywithRot(), tauImpactParameter::TauA1NuConstrainedFitter.TauRot(), heppy::mt2w_bisect::mt2w.teco(), TrapezoidalCartesianMFGrid.TrapezoidalCartesianMFGrid(), and TrapezoidalCylindricalMFGrid.TrapezoidalCylindricalMFGrid().

list isotrackTrainRegressor.a2 = [0, 0, 0.047, 0.089]

Definition at line 100 of file isotrackTrainRegressor.py.

Referenced by MEtoEDM< T >.CheckBinLabels(), DQMTTreeIO::DQMMergeHelper.CheckBinLabels(), dqm::impl::MonitorElement.CheckBinLabels(), HBHENegativeEFilter.checkPassFilter(), FFTJetCorrectorSequence< Jet, InitialConverter, FinalConverter >.correct(), dqm::impl::MonitorElement.divide(), SurveyPxbDicer.doDice(), PulseFitWithShape.doFit(), HcalSimHitsValidation.dPhiWsign(), HcalRecHitsValidation.dPhiWsign(), HcalRecHitsAnalyzer.dPhiWsign(), CMTRawAnalyzer.dPhiWsign(), EcalMatacqAnalyzer.endJob(), VVIObjFDetails.expint(), VVIObjDetails.expint(), sistripvvi::VVIObjDetails.expint(), VVIObj.fcn(), VVIObjF.fcn(), sistripvvi::VVIObj.fcn(), magfieldparam::bcylDetails.ffunkti(), CMTRawAnalyzer.fillDigiAmplitudeQIE11(), heppy::Davismt2.find_high(), DTLinearFit.fitNpar(), TFParams.fitpj(), fnc_dscb(), lumi::fPoly.getCorrection(), GridInterpolator3DException.GridInterpolator3DException(), mkfit.intersectThirdLayer(), EvolutionECAL.LightCollectionEfficiency(), EvolutionECAL.LightCollectionEfficiencyWeighted(), TruncatedPyramid.localCorners(), main(), heppy::Davismt2.mt2_bisect(), heppy::Davismt2.mt2_massless(), heppy::Davismt2.nsols(), heppy::Davismt2.nsols_massless(), GreaterByPtRef< T >.operator()(), GreaterByPtPtr< T >.operator()(), GreaterByEtRef< T >.operator()(), edm.operator+(), operator==(), HcalSimHitsValidation.phi12(), HcalRecHitsValidation.phi12(), HcalRecHitsAnalyzer.phi12(), CMTRawAnalyzer.phi12(), L1TkFastVertexProducer.produce(), TFParams.pulseShapepj(), TFParams.pulseShapepj2(), SiG4UniversalFluctuation.SampleFluctuations(), LandauFP420.SampleFluctuations(), DTTSCand.setBitsBkmod(), DTSectCollPhCand.setBitsSectColl(), and heppy::mt2w_bisect::mt2w.teco().

list isotrackTrainRegressor.cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal_x']

Definition at line 64 of file isotrackTrainRegressor.py.

isotrackTrainRegressor.data = df.values

Definition at line 70 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.df = pd.read_pickle(fName)

Definition at line 38 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.dop = (X_test[:,16]/X_test[:,13])

Definition at line 126 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.eop = (X_test[:,15]/X_test[:,13])

Definition at line 125 of file isotrackTrainRegressor.py.

Referenced by reco::PreId.setECALMatchingProperties().

tuple isotrackTrainRegressor.fName = parser.parse_args()

Definition at line 33 of file isotrackTrainRegressor.py.

Referenced by FilterSelection.acceptMap(), OMTFReconstruction.beginRun(), CaloMeanResponse.CaloMeanResponse(), PatternOptimizerBase.endJob(), OMTFReconstruction.endJob(), OMTFPatternMaker.endJob(), omtf::RpcLinkMap.init(), edm::RootInputFileSequence.initTheFile(), L1TMuonOverlapParamsESProducer.L1TMuonOverlapParamsESProducer(), L1TMuonOverlapPhase1ParamsESProducer.L1TMuonOverlapPhase1ParamsESProducer(), FilterSelection.print(), CSCSectorReceiverLUT.readLUTsFromFile(), HCalSD.readWeightFromFile(), XMLConfigReader.setConfigFile(), XMLConfigReader.setEventsFile(), XMLConfigReader.setPatternsFile(), TTClusterAlgorithm< T >.TTClusterAlgorithm(), TTStubAlgorithm< T >.TTStubAlgorithm(), SummaryOutputProducer.write(), EcalDccWeightBuilder.writeWeightToAsciiFile(), and EcalDccWeightBuilder.writeWeightToRootFile().

tuple isotrackTrainRegressor.history = model.fit(X_train,Y_train , batch_size=5000, epochs=100, validation_split=0.2, verbose=1,sample_weight=propweights(Y_train))

Definition at line 163 of file isotrackTrainRegressor.py.

Referenced by ListIds.analyze(), ListGroups.analyze(), GEMGeometryBuilder.build(), ME0GeometryParsFromDD.buildGeometry(), GEMGeometryParsFromDD.buildGeometry(), ME0GeometryBuilder.buildGeometry(), edm::IDGeneratorSourceBase< PuttableSourceBase >.doReadEvent(), edm::IDGeneratorSourceBase< PuttableSourceBase >.doReadEventWithDelayedReader(), FWLiteJobMetadataManager.doUpdate(), ProvenanceDumper.dumpEventFilteringParameterSets_(), edm::RunPrincipal.fillRunPrincipal(), MuonGeometryNumbering.geoHistoryToBaseNumber(), EcalBarrelGeometry.getClosestCell(), getHLTConfigData(), edm::RawInputSource.makeEvent(), gen::JetMatchingMGFastJet.match(), TFWLiteSelectorBasic.Process(), FlavorHistoryProducer.produce(), edm::StreamerInputSource.read(), edm::RootFile.readCurrentEvent(), edm::TestSource.readEvent_(), edm::RepeatingCachedRootSource.readEvent_(), edm::RootFile.readLuminosityBlock_(), edm::InputSource.readLuminosityBlock_(), edm::RootFile.RootFile(), DQMRootOutputModule.startEndFile(), and ProvenanceDumper.work_().

list isotrackTrainRegressor.keya = []

Definition at line 49 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.lims = [0, 200]

Definition at line 214 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.marinascorr = X_test[:,15]

Definition at line 180 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.maxa = []

Definition at line 48 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.mcorrval = vec0(abs(X_test[:,17]))

Definition at line 129 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.meany = np.mean(Y_train)

Definition at line 88 of file isotrackTrainRegressor.py.

Referenced by SiPixelTemplateReco.PixelTempReco1D(), and SiPixelTemplateSplit.PixelTempSplit().

list isotrackTrainRegressor.mina = []

Definition at line 47 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.model = Sequential()

Definition at line 148 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.modv = parser.parse_args()

Definition at line 34 of file isotrackTrainRegressor.py.

int isotrackTrainRegressor.ntest = 20000

Definition at line 80 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.parser = argparse.ArgumentParser()

Definition at line 27 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.pmom = X_test[:,13]

Definition at line 223 of file isotrackTrainRegressor.py.

Referenced by gen::Pythia6Gun.attachPy6DecaysToGenEvent(), edm::ExpoRandomPGunProducer.produce(), gen::Cascade2Hadronizer.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), HcalIsoTrkAnalyzer.trackP(), and AlCaHcalIsotrkProducer.trackP().

tuple isotrackTrainRegressor.preds = model.predict(X_test[:,0:12])

Definition at line 177 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.RMS = keras.optimizers.RMSprop(lr=0.001, rho=0.9)

Definition at line 156 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.stdy = np.std(Y_train)

Definition at line 90 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.targets = data[:,12]

Definition at line 72 of file isotrackTrainRegressor.py.

Referenced by PythiaDauVFilterMatchID.filter(), and L1TGlobalPrescaler.filter().

list isotrackTrainRegressor.testindx = data.shape[0]

Definition at line 81 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.uncorrected = X_test[:,15]

Definition at line 179 of file isotrackTrainRegressor.py.

Referenced by PFRecoTauDiscriminationByHPSSelection.discriminate().

tuple isotrackTrainRegressor.vec0 = np.vectorize(fac0)

Definition at line 120 of file isotrackTrainRegressor.py.

Referenced by EcalEBTrigPrimTestAlgo.initStructures(), and EcalTrigPrimFunctionalAlgo.initStructures().

tuple isotrackTrainRegressor.vec1 = np.vectorize(fac1)

Definition at line 121 of file isotrackTrainRegressor.py.

tuple isotrackTrainRegressor.vec2 = np.vectorize(fac2)

Definition at line 122 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.X_test = data[testindx:,:]

Definition at line 84 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.X_train = data[:testindx,0:12]

Definition at line 82 of file isotrackTrainRegressor.py.

list isotrackTrainRegressor.Y_train = data[:testindx,12]

Definition at line 83 of file isotrackTrainRegressor.py.