* Revert "Fix #3485, #3540: Don't use dropout for predicting test sets (#3556)"
This reverts commit 44811f2330.
* Document behavior of predict() for DART booster
* Add notice to parameter.rst
This commit is contained in:
committed by
GitHub
parent
e3e776bd58
commit
3c72654e3b
@@ -111,3 +111,9 @@ Sample Script
|
||||
# make prediction
|
||||
# ntree_limit must not be 0
|
||||
preds = bst.predict(dtest, ntree_limit=num_round)
|
||||
|
||||
.. note:: Specify ``ntree_limit`` when predicting with test sets
|
||||
|
||||
By default, ``bst.predict()`` will perform dropouts on trees. To obtain
|
||||
correct results on test sets, disable dropouts by specifying
|
||||
a nonzero value for ``ntree_limit``.
|
||||
|
||||
Reference in New Issue
Block a user