File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- from logging import getLogger
2
-
3
- logger = getLogger (__name__ )
4
- logger .setLevel ("INFO" )
5
-
1
+ from sklearn .utils .estimator_checks import parametrize_with_checks
6
2
def test_import ():
7
3
import radius_clustering as rad
8
4
9
5
10
6
def test_from_import ():
11
7
from radius_clustering import RadiusClustering
12
8
13
- def test_check_estimator_api_consistency ():
14
- from radius_clustering import RadiusClustering
15
- from sklearn .utils .estimator_checks import check_estimator
16
9
17
- # Check the API consistency of the RadiusClustering estimator
18
- check_estimator (RadiusClustering ())
10
+ from radius_clustering import RadiusClustering
11
+
12
+ @parametrize_with_checks ([RadiusClustering ()])
13
+ def test_check_estimator_api_consistency (estimator , check , request ):
14
+
15
+ """Check the API consistency of the RadiusClustering estimator
16
+ """
17
+ check (estimator )
You can’t perform that action at this time.
0 commit comments