496e3d795c1f33010899f34c2e171a76a3d8e75c,codes/2-basics_in_machine_learning/linear_svm/code/linear_SVM.py,,,#,70

Before Change



    positive_X = [data[1] for index,data in enumerate(X) if y[index]==1]
    positive_y = [data[0] for index,data in enumerate(X) if y[index]==1]
    negative_X = [data[1] for index,data in enumerate(X) if y[index]==-1]
    negative_y = [data[0] for index,data in enumerate(X) if y[index]==-1]

    // Plotting the SVM decision boundary.
    plt.plot(positive_X, positive_y, "+", label="Positive")

After Change



    // Displaying the desired values.
    if step_idx % 100 ==0:
        print("Step //%d, training accuracy= %% %.2f, testing accuracy= %% %.2f " % (step_idx, float(100 * train_acc_step), float(100 * test_acc_step)))

if FLAGS.is_evaluation:
    [[w1], [w2]] = sess.run(W)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: astorfi/TensorFlow-World
Commit Name: 496e3d795c1f33010899f34c2e171a76a3d8e75c
Time: 2017-06-14
Author: amirsina.torfi@gmail.com
File Name: codes/2-basics_in_machine_learning/linear_svm/code/linear_SVM.py
Class Name:
Method Name:


Project Name: librosa/librosa
Commit Name: d907c99207adc05ace52025c1eb231f014d0eecb
Time: 2013-02-11
Author: brm2132@columbia.edu
File Name: librosa/__init__.py
Class Name:
Method Name: load


Project Name: geekcomputers/Python
Commit Name: 3dfdfaa6db730f66bdff5155320d4c4ee5d5b29c
Time: 2020-09-20
Author: markhappy200@gmail.com
File Name: EncryptionTool.py
Class Name:
Method Name: readAndDecrypt