c68df783deee8bf210f7e33f80f9ab2c46d3108c,yellowbrick/classifier/class_prediction_error.py,,class_prediction_error,#,241

Before Change


    )

    // Create the train and test splits
    X_train, X_test, y_train, y_test = tts(
        X, y, test_size=test_size, random_state=random_state
    )

    // Fit and transform the visualizer (calls draw)
    visualizer.fit(X_train, y_train, **kwargs)
    visualizer.score(X_test, y_test)
    visualizer.finalize()

    // Return the visualizer
    return visualizer

After Change


    viz.fit(X_train, y_train, **kwargs)

    // Score the visualizer
    if X_test is not None and y_test is not None:
        viz.score(X_test, y_test)
    elif X_test is not None or y_test is not None:
        raise YellowbrickValueError("must specify both X_test and y_test or neither")
    else:
        viz.score(X_train, y_train)

    // Draw the final visualization
    if show:
        viz.show()
    else:
        viz.finalize()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 21

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: c68df783deee8bf210f7e33f80f9ab2c46d3108c
Time: 2020-02-08
Author: lwgray@gmail.com
File Name: yellowbrick/classifier/class_prediction_error.py
Class Name:
Method Name: class_prediction_error


Project Name: DistrictDataLabs/yellowbrick
Commit Name: c68df783deee8bf210f7e33f80f9ab2c46d3108c
Time: 2020-02-08
Author: lwgray@gmail.com
File Name: yellowbrick/classifier/class_prediction_error.py
Class Name:
Method Name: class_prediction_error


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 942360a1699d835c37c2b11c1deebcdc1161e5c4
Time: 2020-02-07
Author: benjamin@bengfort.com
File Name: yellowbrick/regressor/residuals.py
Class Name:
Method Name: residuals_plot


Project Name: DistrictDataLabs/yellowbrick
Commit Name: a0e281ec3bdf753aa025b38547b829f145797373
Time: 2020-02-08
Author: pdamodaran@users.noreply.github.com
File Name: yellowbrick/regressor/residuals.py
Class Name:
Method Name: prediction_error


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 2f2e5a2534e105f07e2f0db40f67e4e4eb8cff92
Time: 2020-02-09
Author: Kautumn06@users.noreply.github.com
File Name: yellowbrick/classifier/classification_report.py
Class Name:
Method Name: classification_report