Skip to content

Commit

Permalink
Update xgboostlss.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Jan 25, 2025
1 parent 2d64c5c commit d7c5dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skpro/regression/xgboostlss.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _fit(self, X, y):
self._y_cols = y.columns
n_cpu = self._n_cpu

dtrain = xgb.DMatrix(X, label=y, n_cpu=n_cpu, silent=True)
dtrain = xgb.DMatrix(X, label=y, n_thread=n_cpu, silent=True)

xgblss = XGBoostLSS(
Gaussian(
Expand Down Expand Up @@ -211,7 +211,7 @@ def _predict_proba(self, X):
y_cols = self._y_cols
columns = y_cols

dtest = xgb.DMatrix(X, n_cpu=n_cpu, silent=True)
dtest = xgb.DMatrix(X, n_thread=n_cpu, silent=True)

y_pred_xgblss = self.xgblss_.predict(dtest, pred_type="parameters")

Expand Down

0 comments on commit d7c5dac

Please sign in to comment.