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