936854579a3cc112f0686e397798d2aa73e5fab3,sklearn/metrics/_regression.py,,mean_squared_error,#,194

Before Change


                               weights=sample_weight)
    if isinstance(multioutput, str):
        if multioutput == "raw_values":
            return output_errors if squared else np.sqrt(output_errors)
        elif multioutput == "uniform_average":
            // pass None as weights to np.average: uniform mean
            multioutput = None

After Change


    output_errors = np.average((y_true - y_pred) ** 2, axis=0,
                               weights=sample_weight)

    if not squared:
        output_errors = np.sqrt(output_errors)

    if isinstance(multioutput, str):
        if multioutput == "raw_values":
            return output_errors
        elif multioutput == "uniform_average":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: 936854579a3cc112f0686e397798d2aa73e5fab3
Time: 2020-05-24
Author: swierh@users.noreply.github.com
File Name: sklearn/metrics/_regression.py
Class Name:
Method Name: mean_squared_error


Project Name: yzhao062/pyod
Commit Name: f5b2d7fecaea7886cc527ee16c292e1cd4bb736a
Time: 2019-05-29
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _sod


Project Name: yzhao062/pyod
Commit Name: f88ec970f95c3b1fb1f0d72ccf0069732e4a0510
Time: 2019-06-12
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _sod