File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,11 @@ def __init__(
268
268
# Make sklearn get_params happy
269
269
self .internal_sort = internal_sort
270
270
271
- def _more_tags (self ):
272
- return {"allow_nan" : True , "accept_large_sparse" : False }
271
+ def __sklearn_tags__ (self ):
272
+ tags = super ().__sklearn_tags__ ()
273
+ tags ["allow_nan" ] = True
274
+ tags ["accept_large_sparse" ] = False
275
+ return tags
273
276
274
277
def _undefine_estimator_attributes (self ):
275
278
"""Undefines all sklearn estimator attributes (ie. pass to "not fit" state)
@@ -1399,8 +1402,10 @@ def __init__(
1399
1402
)
1400
1403
)
1401
1404
1402
- def _more_tags (self ):
1403
- return {"require_y" : True }
1405
+ def __sklearn_tags__ (self ):
1406
+ tags = super ().__sklearn_tags__ ()
1407
+ tags ["require_y" ] = True
1408
+ return tags
1404
1409
1405
1410
def _fit_check_dataset (self , ds ):
1406
1411
super ()._fit_check_dataset (ds )
You can’t perform that action at this time.
0 commit comments