- xgb_reg = xgboost.XGBRegressor(learning_rate = 0.01,
- max_depth = 10,
- random_state=42,
- n_estimators = 173,
- n_jobs=-1,
- objective = 'count:poisson')
+
+ xgb_reg = xgboost.XGBRegressor(learning_rate = self._config['HYPERPARAMETERS'].getfloat('learning_rate'),
+ max_depth = self._config['HYPERPARAMETERS'].getint('max_depth'),
+ random_state = self._config['HYPERPARAMETERS'].getint('random_state'),
+ n_estimators = self._config['HYPERPARAMETERS'].getint('n_estimators'),
+ n_jobs = self._config['HYPERPARAMETERS'].getint('n_jobs'),
+ objective = 'count:poisson')