311ac284d99ea7243e0918949f3a499a7a93fab5,examples/decoding/plot_haxby_space_net.py,,,#,14
Before Change
cut_coords=(-34, -16), display_mode="yz")
coef_img.to_filename("haxby_%s_weights.nii" % penalty)
print("- %s %s" % (penalty, "-" * 60))
print("Number of train samples : %i" % condition_mask_train.sum())
print("Number of test samples : %i" % condition_mask_test.sum())
print("Classification accuracy : %g%%" % accuracy)
print("_" * 80)
After Change
// Now Fit SpaceNet with a TV-l1 penalty
decoder = SpaceNetClassifier(memory="cache", penalty="tv-l1")
decoder.fit(X_train, y_train)
y_pred = decoder.predict(X_test)
accuracy = (y_pred == y_test).mean() * 100.
print("TV-l1 classification accuracy : %g%%" % accuracy)
// Visualization
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: nilearn/nilearn
Commit Name: 311ac284d99ea7243e0918949f3a499a7a93fab5
Time: 2015-11-29
Author: gael.varoquaux@normalesup.org
File Name: examples/decoding/plot_haxby_space_net.py
Class Name:
Method Name:
Project Name: yzhao062/pyod
Commit Name: fbdbf4de743519da4c794c9f87467b903f5194a6
Time: 2018-09-03
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/auto_encoder.py
Class Name: AutoEncoder
Method Name: decision_function
Project Name: automl/auto-sklearn
Commit Name: 95669bb605ca60a0528c335cb1a52dea75b230a2
Time: 2016-02-03
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/automl.py
Class Name: AutoML
Method Name: predict
Project Name: rushter/MLAlgorithms
Commit Name: 01e68e64b745ebc5ef4a3b8c52e2ee9f3cac4cfb
Time: 2016-10-17
Author: me@rushter.com
File Name: mla/ensemble/random_forest.py
Class Name: RandomForestRegressor
Method Name: _predict