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

After Change


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

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: utiasSTARS/liegroups
Commit Name: 784586f02d063d39360a287422a6384f30f10d12
Time: 2017-01-30
Author: clement.leopold@gmail.com
File Name: liegroups/so3.py
Class Name: SO3
Method Name: vee


Project Name: luispedro/mahotas
Commit Name: ee05a458afb49cdc775d4a4498a67cbf78d9ead7
Time: 2014-03-27
Author: luis@luispedro.org
File Name: mahotas/convolve.py
Class Name:
Method Name: find