Skip to content

Commit 6b019a9

Browse files
committed
Revert "Synced code [skip ci]"
This reverts commit 036a033.
1 parent 036a033 commit 6b019a9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/xgboost/model.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ def save_model(fname)
2020

2121
def load_model(fname)
2222
@booster = Booster.new(params: @params, model_file: fname)
23-
config = JSON.parse(@booster.save_config)
24-
load_model_attributes(config)
2523
end
2624

2725
def feature_importances
@@ -31,11 +29,5 @@ def feature_importances
3129
total = scores.sum.to_f
3230
scores.map { |s| s / total }
3331
end
34-
35-
private
36-
37-
def load_model_attributes(config)
38-
@objective = config["learner"]["objective"]["name"]
39-
end
4032
end
4133
end

0 commit comments

Comments
 (0)