lib/xgboost/ranker.rb in xgb-0.2.1 vs lib/xgboost/ranker.rb in xgb-0.3.0
- old
+ new
@@ -1,7 +1,7 @@
module XGBoost
class Ranker < Model
- def initialize(max_depth: 3, learning_rate: 0.1, n_estimators: 100, objective: "rank:pairwise", importance_type: "gain", **options)
+ def initialize(n_estimators: 100, objective: "rank:pairwise", importance_type: "gain", **options)
super
end
def fit(x, y, group)
dtrain = DMatrix.new(x, label: y)