Sha256: 19911496c34d77acd7452f51ff47b04b9d0b31c95ac7618794d42c3ae2610262
Contents?: true
Size: 313 Bytes
Versions: 3
Compression:
Stored size: 313 Bytes
Contents
module XGBoost class Ranker < Model def initialize(objective: "rank:ndcg", **options) super end def fit(x, y, group) dtrain = DMatrix.new(x, label: y) dtrain.group = group @booster = XGBoost.train(@params, dtrain, num_boost_round: @n_estimators) nil end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
honzasterba_xgb-0.9.0 | lib/xgboost/ranker.rb |
xgb-0.9.0 | lib/xgboost/ranker.rb |
xgb-0.8.0 | lib/xgboost/ranker.rb |