Skip to content

Commit 85bc90a

Browse files
committed
Fixed test
1 parent 6b019a9 commit 85bc90a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/xgboost/model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def save_model(fname)
1919
end
2020

2121
def load_model(fname)
22-
@booster = Booster.new(params: @params, model_file: fname)
22+
@booster = Booster.new(model_file: fname)
2323
end
2424

2525
def feature_importances

test/classifier_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def test_multiclass
4444

4545
model = XGBoost::Classifier.new
4646
model.load_model(tempfile)
47-
# TODO fix
48-
# assert_equal y_pred, model.predict(x_test)
47+
assert_equal y_pred, model.predict(x_test)
4948
end
5049

5150
def test_early_stopping

0 commit comments

Comments
 (0)