@@ -546,7 +546,7 @@ def checks_generator():
546
546
)
547
547
548
548
549
- def check_estimator (estimator = None , generate_only = False , Estimator = "deprecated" ):
549
+ def check_estimator (estimator = None , generate_only = False ):
550
550
"""Check if estimator adheres to scikit-learn conventions.
551
551
552
552
This function will run an extensive test-suite for input validation,
@@ -582,13 +582,6 @@ def check_estimator(estimator=None, generate_only=False, Estimator="deprecated")
582
582
583
583
.. versionadded:: 0.22
584
584
585
- Estimator : estimator object
586
- Estimator instance to check.
587
-
588
- .. deprecated:: 1.1
589
- ``Estimator`` was deprecated in favor of ``estimator`` in version 1.1
590
- and will be removed in version 1.3.
591
-
592
585
Returns
593
586
-------
594
587
checks_generator : generator
@@ -600,18 +593,6 @@ def check_estimator(estimator=None, generate_only=False, Estimator="deprecated")
600
593
parametrize_with_checks : Pytest specific decorator for parametrizing estimator
601
594
checks.
602
595
"""
603
-
604
- if estimator is None and Estimator == "deprecated" :
605
- msg = "Either estimator or Estimator should be passed to check_estimator."
606
- raise ValueError (msg )
607
-
608
- if Estimator != "deprecated" :
609
- msg = (
610
- "'Estimator' was deprecated in favor of 'estimator' in version 1.1 "
611
- "and will be removed in version 1.3."
612
- )
613
- warnings .warn (msg , FutureWarning )
614
- estimator = Estimator
615
596
if isinstance (estimator , type ):
616
597
msg = (
617
598
"Passing a class was deprecated in version 0.23 "
0 commit comments