summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-19 10:46:20 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-19 10:46:20 +0100
commitc680e131ceb8403031f4f2efe8b67548f5c0be06 (patch)
treec837d69c96b766490b7097f2e528fea503288e2f
parent5b030d650f398b0b6190260235c45aedb4959fa2 (diff)
functions: explicitly mention _xgb_ hyper-parameters in dref export
-rw-r--r--lib/functions.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/functions.py b/lib/functions.py
index 82e516e..0f472ee 100644
--- a/lib/functions.py
+++ b/lib/functions.py
@@ -733,13 +733,13 @@ class XGBoostFunction(SKLearnRegressionFunction):
def to_dref(self):
return {
- "hyper/n estimators": self.regressor.n_estimators,
- "hyper/max depth": self.regressor.max_depth,
- "hyper/subsample": self.regressor.subsample,
- "hyper/eta": self.regressor.learning_rate,
- "hyper/gamma": self.regressor.gamma,
- "hyper/alpha": self.regressor.reg_alpha,
- "hyper/lambda": self.regressor.reg_lambda,
+ "xgb hyper/n estimators": self.regressor.n_estimators,
+ "xgb hyper/max depth": self.regressor.max_depth,
+ "xgb hyper/subsample": self.regressor.subsample,
+ "xgb hyper/eta": self.regressor.learning_rate,
+ "xgb hyper/gamma": self.regressor.gamma,
+ "xgb hyper/alpha": self.regressor.reg_alpha,
+ "xgb hyper/lambda": self.regressor.reg_lambda,
}