8 XGBoosterSetParam(
booster_,
"nthread",
"1");
14 <<
", \"strict_shape\": false}";
36 float sigmaIEtaIEtaIn,
42 float ecalPFIsoIn)
const {
46 var[sigmaIEtaIEta] = sigmaIEtaIEtaIn;
52 var[ecalPFIso] = ecalPFIsoIn;
55 XGDMatrixCreateFromMat(
var, 1, 9, -999.9
f, &dmat);
58 const float* out_result =
NULL;
59 XGBoosterPredictFromDMatrix(
booster_, dmat,
config_.c_str(), &out_shape, &out_dim, &out_result);
60 float ret = out_result[0];
~PhotonXGBoostEstimator()
ret
prodAgent to be discontinued
float computeMva(float rawEnergyIn, float r9In, float sigmaIEtaIEtaIn, float etaWidthIn, float phiWidthIn, float s4In, float etaIn, float hOvrEIn, float ecalPFIsoIn) const
unsigned long long uint64_t
dictionary config
Read in AllInOne config in JSON format.
PhotonXGBoostEstimator(const edm::FileInPath &weightsFile, int best_ntree_limit)