def test_estimator_class(self):
"""
Test that isestimator works for classes
"""
models = (
LinearRegression,
LogisticRegression,
KMeans,
LSHForest,
PCA,
RidgeCV,
LassoCV,
RandomForestClassifier,
)
for model in models:
self.assertTrue(inspect.isclass(model))
self.assertTrue(isestimator(model))
评论列表
文章目录