Esempio n. 1
0
        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)
            });
        }