1 #ifndef PhysicsTools_XGBoost_XGBooster_h 2 #define PhysicsTools_XGBoost_XGBooster_h 8 #include <xgboost/c_api.h> 25 float predict(
const int iterationEnd = 0);
26 float predict(
const std::vector<float>&
features,
const int iterationEnd = 0)
const;
void reset()
Reset feature values.
XGBooster(std::string model_file)
float predict(const int iterationEnd=0)
std::vector< float > features(const reco::PreId &ecal, const reco::PreId &hcal, double rho, const reco::BeamSpot &spot, noZS::EcalClusterLazyTools &ecalTools)
std::vector< float > features_
std::map< std::string, unsigned int > feature_name_to_index_
void addFeature(std::string name)