9b292db701a05ec2748be18d51a8bc52b98c646c,mlxtend/evaluate/decision_regions.py,,plot_decision_regions,#,15

Before Change



    

    if isinstance(y, list):
        y_ary = np.array(y)
    else:
        y_ary = y

After Change


    

    // Check types
    if not isinstance(X, np.ndarray):
        raise ValueError("X must be a 2D NumPy array")
    if not isinstance(y, np.ndarray):
        raise ValueError("y must be a 1D NumPy array")
    if not np.issubdtype(y.dtype, np.integer):
        raise ValueError("y must have be an integer array. "
                         "Try passing the array as y.astype(np.integer)")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: rasbt/mlxtend
Commit Name: 9b292db701a05ec2748be18d51a8bc52b98c646c
Time: 2016-07-14
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/decision_regions.py
Class Name:
Method Name: plot_decision_regions


Project Name: librosa/librosa
Commit Name: 3ba6fff239cb4bc25d0bf22001ebc6cd253ec77b
Time: 2019-05-05
Author: brian.mcfee@nyu.edu
File Name: librosa/core/audio.py
Class Name:
Method Name: stream


Project Name: librosa/librosa
Commit Name: 5a35ee5a98a7021ef07d2481719335d84de42a5e
Time: 2019-06-21
Author: brian.mcfee@nyu.edu
File Name: librosa/core/audio.py
Class Name:
Method Name: stream


Project Name: rasbt/mlxtend
Commit Name: 9b292db701a05ec2748be18d51a8bc52b98c646c
Time: 2016-07-14
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/decision_regions.py
Class Name:
Method Name: plot_decision_regions