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
    for a in (X, y_ary):
        if not isinstance(a, np.ndarray):
            raise ValueError("%s must be a NumPy array." % a.__name__)

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: 7

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: neurodsp-tools/neurodsp
Commit Name: c766ed7709046b9d0377bd5e07f8d0a363c26cb8
Time: 2019-03-23
Author: tdonoghue@ucsd.edu
File Name: neurodsp/sim/combined.py
Class Name:
Method Name: sim_combined


Project Name: chartbeat-labs/textacy
Commit Name: db3deb22ff32f40ba446149946b4f0d47ba2fed2
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/similarity.py
Class Name:
Method Name: jaccard