@@ -12,10 +12,7 @@ class TestModelRegistry(unittest.TestCase):
1212 def test_classification_registry (self ):
1313 """Test classification model registry."""
1414 try :
15- from lazypredict .models .model_registry import (
16- CLASSIFIERS ,
17- get_classification_models ,
18- )
15+ from lazypredict .models .model_registry import CLASSIFIERS , get_classification_models
1916
2017 # Test getting all models
2118 models = get_classification_models ()
@@ -37,10 +34,7 @@ def test_classification_registry(self):
3734 def test_regression_registry (self ):
3835 """Test regression model registry."""
3936 try :
40- from lazypredict .models .model_registry import (
41- REGRESSORS ,
42- get_regression_models ,
43- )
37+ from lazypredict .models .model_registry import REGRESSORS , get_regression_models
4438
4539 # Test getting all models
4640 models = get_regression_models ()
@@ -62,10 +56,7 @@ def test_regression_registry(self):
6256 def test_classifier_filter (self ):
6357 """Test classifier filtering."""
6458 try :
65- from lazypredict .models .model_registry import (
66- CLASSIFIERS ,
67- filter_models ,
68- )
59+ from lazypredict .models .model_registry import CLASSIFIERS , filter_models
6960
7061 # Test filtering with exclude list
7162 filtered = filter_models (CLASSIFIERS , exclude = ["RandomForestClassifier" ])
@@ -85,10 +76,7 @@ def test_classifier_filter(self):
8576 def test_regressor_filter (self ):
8677 """Test regressor filtering."""
8778 try :
88- from lazypredict .models .model_registry import (
89- REGRESSORS ,
90- filter_models ,
91- )
79+ from lazypredict .models .model_registry import REGRESSORS , filter_models
9280
9381 # Test filtering with exclude list
9482 filtered = filter_models (REGRESSORS , exclude = ["RandomForestRegressor" ])
@@ -108,9 +96,7 @@ def test_regressor_filter(self):
10896 def test_classifier_initialization (self ):
10997 """Test classifier initialization."""
11098 try :
111- from lazypredict .models .model_registry import (
112- get_classification_models ,
113- )
99+ from lazypredict .models .model_registry import get_classification_models
114100
115101 models = get_classification_models ()
116102 for model_class in models :
0 commit comments