cf4909eb9206ca94f1e9ad5a0dcbba31dd2536b5,examples/svm/plot_svm_margin.py,,,#,18

Before Change



    // Put the result into a color plot
    Z = Z.reshape(XX.shape)
    plt.figure(fignum, figsize=(4, 3))
    plt.pcolormesh(XX, YY, Z, cmap=plt.cm.Paired)

    plt.xlim(x_min, x_max)
    plt.ylim(y_min, y_max)

After Change


    y_max = 6

    YY, XX = np.meshgrid(yy, xx)
    xy = np.vstack([XX.ravel(), YY.ravel()]).T
    Z = clf.decision_function(xy).reshape(XX.shape)

    // Put the result into a contour plot
    plt.contourf(XX, YY, Z, cmap=cm.get_cmap("RdBu"),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: cf4909eb9206ca94f1e9ad5a0dcbba31dd2536b5
Time: 2021-02-08
Author: meezamanda@yahoo.com
File Name: examples/svm/plot_svm_margin.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: 1039a5cd211fcd785a6a2901b0310660b18b7d93
Time: 2016-06-09
Author: abraham.alexandre@gmail.com
File Name: examples/connectivity/plot_power_connectome.py
Class Name:
Method Name:


Project Name: librosa/librosa
Commit Name: 24d6f5e42d775949e191122091826eefa7bf1246
Time: 2020-06-27
Author: bmcfee@users.noreply.github.com
File Name: docs/examples/plot_vocal_separation.py
Class Name:
Method Name:


Project Name: biotite-dev/biotite
Commit Name: 227534c96ece3839fe95075be096f07557b7d464
Time: 2020-02-20
Author: patrick.kunzm@gmail.com
File Name: doc/examples/scripts/sequence/plasmid_map.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: b851452bfc933f78ee1c4e42188744a8c5f14c52
Time: 2015-12-03
Author: dkamalakarreddy@gmail.com
File Name: examples/connectivity/plot_extract_regions_canica_maps.py
Class Name:
Method Name: