* Specify DMatrix parameter for pre-processing dataframe. * Add document about the behaviour of prediction.
This commit is contained in:
@@ -59,6 +59,7 @@ def test_categorical():
|
||||
)
|
||||
X = pd.DataFrame(X.todense()).astype("category")
|
||||
clf.fit(X, y)
|
||||
assert not clf._can_use_inplace_predict()
|
||||
|
||||
with tempfile.TemporaryDirectory() as tempdir:
|
||||
model = os.path.join(tempdir, "categorial.json")
|
||||
|
||||
Reference in New Issue
Block a user