fbc88d00d619ec087904494a3032c7aef01305b6,mlxtend/evaluate/decision_regions.py,,plot_decision_regions,#,15

Before Change


    else:
        dim = "1d"

    marker_gen = cycle(["s", "^", "o", "x", "v", "<", ">"])

    // make color map
    n_classes = len(np.unique(y.astype(int)))
    colors = ["red", "blue", "limegreen", "gray", "cyan"]

After Change


        if not isinstance(a, np.ndarray):
            raise ValueError("%s must be a NumPy array." % a.__name__)

    if ax is None:
        ax = plt.gca()

    // check if test data is provided
    plot_testdata = True
    if not isinstance(X_highlight, np.ndarray):
        if X_highlight is not None:
            raise ValueError("X_test must be a NumPy array or None")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rasbt/mlxtend
Commit Name: fbc88d00d619ec087904494a3032c7aef01305b6
Time: 2016-02-18
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/decision_regions.py
Class Name:
Method Name: plot_decision_regions


Project Name: rasbt/mlxtend
Commit Name: 12e0eb943cca24ae0c5f21e9bd51a0bff83f96ed
Time: 2015-03-09
Author: se.raschka@me.com
File Name: mlxtend/matplotlib/decision_regions.py
Class Name:
Method Name: plot_decision_regions


Project Name: UFAL-DSG/tgen
Commit Name: a886baab6b48d976f0b30addde5e588282de072f
Time: 2016-05-17
Author: odusek@ufal.mff.cuni.cz
File Name: util/select_pairs_for_ab.py
Class Name:
Method Name: main