def test_input_estimator_unchanged():
 est = RandomForestClassifier()
 transformer = SelectFromModel(estimator=est)
 transformer.fit(data, y)
 assert_true((transformer.estimator is est))

def test_input_estimator_unchanged ( ) : est = RandomForestClassifier ( ) transformer = SelectFromModel ( estimator = est ) transformer . fit ( data , y ) assert_true ( ( transformer . estimator is est ) )
test that selectfrommodel fits on a clone of the estimator .