public XGBClassifier Clone() { byte[] modelBytes = booster.GetModelRaw(); XGBooster newBooster = new XGBooster(); newBooster.LoadModelFromBuffer(modelBytes); return(new XGBClassifier { booster = newBooster, parameters = new Dictionary <string, object>(parameters) }); }