f676d045295e8da9b5d816e4719317864d9dff20,tslearn/tests/sklearn_patches.py,,enforce_estimator_tags_y,#Any#Any#,120

Before Change


        y += 1 + abs(y.min())
    // Estimators in mono_output_task_error raise ValueError if y is of 1-D
    // Convert into a 2-D y for those estimators.
    if _safe_tags(estimator, "multioutput_only"):
        return np.reshape(y, (-1, 1))
    return y

After Change


        y += 1 + abs(y.min())
    // Estimators in mono_output_task_error raise ValueError if y is of 1-D
    // Convert into a 2-D y for those estimators.
    if estimator._get_tags()["multioutput_only"]:
        return np.reshape(y, (-1, 1))
    return y
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rtavenar/tslearn
Commit Name: f676d045295e8da9b5d816e4719317864d9dff20
Time: 2020-05-15
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/tests/sklearn_patches.py
Class Name:
Method Name: enforce_estimator_tags_y


Project Name: rtavenar/tslearn
Commit Name: f676d045295e8da9b5d816e4719317864d9dff20
Time: 2020-05-15
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/tests/sklearn_patches.py
Class Name:
Method Name: check_fit_idempotent


Project Name: rtavenar/tslearn
Commit Name: f676d045295e8da9b5d816e4719317864d9dff20
Time: 2020-05-15
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/tests/sklearn_patches.py
Class Name:
Method Name: check_pipeline_consistency