Skip to content

Commit

Permalink
[Feature] set xgboost num boost round (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
RektPunk authored Oct 5, 2024
1 parent 3055d02 commit ddde704
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rektgbm"
version = "0.1.5"
version = "0.1.6"
description = "No-brainer machine learning solution to achieve satisfactory performance"
authors = ["RektPunk <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion rektgbm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from rektgbm.gbm import RektGBM
from rektgbm.optimizer import RektOptimizer

__version__ = "0.1.5"
__version__ = "0.1.6"
1 change: 1 addition & 0 deletions rektgbm/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def fit(
evals_result = {}
self.model = xgb.train(
dtrain=dtrain,
num_boost_round=100,
verbose_eval=False,
params=self.params,
evals_result=evals_result,
Expand Down
1 change: 1 addition & 0 deletions tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def test_rektengine_xgb_fit(mock_dataset, mock_xgb_model):
xgb.train.assert_called_once_with(
dtrain="dtrain_mock",
verbose_eval=False,
num_boost_round=100,
params={"eval_metric": "rmse"},
evals_result={},
evals=[("dvalid_mock", _VALID_STR)],
Expand Down

1 comment on commit ddde704

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests Skipped Failures Errors Time
95 0 💤 0 ❌ 0 🔥 5.914s ⏱️

Please sign in to comment.