56aafda07e62498a4677a9c81b6c160a620d2811,tests.py,,test_StackingEstimator_3,#,1074
Before Change
sklearn_pipeline = make_pipeline(stack_clf, meta_clf)
cv_score1 = np.mean(cross_val_score(sklearn_pipeline, training_features, training_classes, cv=3, scoring="accuracy"))
cv_score2 = np.mean(cross_val_score(meta_clf, training_features, training_classes, cv=3, scoring="accuracy"))
known_score1 = 0.947282375315
known_score2 = 0.948023167514
After Change
meta_clf = LogisticRegression()
sklearn_pipeline = make_pipeline(stack_clf, meta_clf)
// fit in pipeline
sklearn_pipeline.fit(training_features, training_classes)
// fit step by step
stack_clf.fit(training_features, training_classes)
X_clf_transformed = stack_clf.transform(training_features)
meta_clf.fit(X_clf_transformed, training_classes)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: EpistasisLab/tpot
Commit Name: 56aafda07e62498a4677a9c81b6c160a620d2811
Time: 2017-05-22
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_StackingEstimator_3
Project Name: nilearn/nilearn
Commit Name: a2726e4adf24705bd56b53c932152906b8d1d53f
Time: 2020-02-26
Author: 10728205+tbng@users.noreply.github.com
File Name: examples/02_decoding/plot_haxby_full_analysis.py
Class Name:
Method Name:
Project Name: nilearn/nilearn
Commit Name: 9255450f479e9c3eba73e8535c8099ce054d09c5
Time: 2020-12-09
Author: dkamalakarreddy@gmail.com
File Name: examples/02_decoding/plot_haxby_full_analysis.py
Class Name:
Method Name: