bf6474b0fac4435737ca8a2afe83209df2e3a980,mlxtend/evaluate/decision_regions.py,,plot_decision_regions,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,15

Before Change


    // make color map
    n_classes = np.unique(y).shape[0]
    colors = colors.split(",")
    cmap = ListedColormap(colors[:n_classes])

    // plot the decision surface
    if dim == "2d":

After Change



    n_classes = np.unique(y).shape[0]
    colors = colors.split(",")
    colors_gen = cycle(colors)
    colors = [next(colors_gen) for c in range(n_classes)]

    if dim == "2d":
        y_min, y_max = X[:, 1].min() - 1, X[:, 1].max() + 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: rasbt/mlxtend
Commit Name: bf6474b0fac4435737ca8a2afe83209df2e3a980
Time: 2016-09-15
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/decision_regions.py
Class Name:
Method Name: plot_decision_regions


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 54542222784567071f368d9e07900621afb15b8d
Time: 2017-05-26
Author: eu@caiocarrara.com.br
File Name: jarbas/api/tests/test_reimbursement_view.py
Class Name: TestListApi
Method Name: test_more_than_one_document_query


Project Name: pandas-dev/pandas
Commit Name: a347bc1e62b9f2a09e121019e9815f035c48e88a
Time: 2020-11-07
Author: 41443370+ivanovmg@users.noreply.github.com
File Name: pandas/plotting/_matplotlib/style.py
Class Name:
Method Name: _cycle_colors