85cc5f10bbc3f06db3198e0b31c4d36f2d2d84c2,test/test_evaluation/test_holdout_evaluator.py,HoldoutEvaluatorTest,test_predict_proba_binary_classification,#HoldoutEvaluatorTest#,60

Before Change


                return np.array([[0.1, 0.9], [0.7, 0.3]])

        model = Dummy2()
        task_type = BINARY_CLASSIFICATION

        configuration_space = get_configuration_space(
            D.info,
            include_estimators=["extra_trees"],
            include_preprocessors=["select_rates"])
        configuration = configuration_space.sample_configuration()

        evaluator = HoldoutEvaluator(D, self.output_dir, configuration)
        pred = evaluator.predict_proba(None, model, task_type,
                                       D.data["Y_train"])
        expected = [[0.9], [0.3]]
        for i in range(len(expected)):
            self.assertEqual(expected[i], pred[i][1])

After Change



        evaluator = HoldoutEvaluator(D, self.output_dir, configuration)
        evaluator.model = model
        loss, Y_optimization_pred, Y_valid_pred, Y_test_pred = \
            evaluator.fit_predict_and_loss()

        for i in range(23):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: automl/auto-sklearn
Commit Name: 85cc5f10bbc3f06db3198e0b31c4d36f2d2d84c2
Time: 2016-02-10
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_evaluation/test_holdout_evaluator.py
Class Name: HoldoutEvaluatorTest
Method Name: test_predict_proba_binary_classification


Project Name: scikit-learn-contrib/DESlib
Commit Name: ff20a1ac24728131fd757d729260224e57b306bd
Time: 2018-12-05
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_knop.py
Class Name:
Method Name: test_estimate_competence


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 9b31677971ef20cb033e787cdaac6f639a728e05
Time: 2019-11-17
Author: redoykhan555@gmail.com
File Name: imblearn/under_sampling/_prototype_selection/_instance_hardness_threshold.py
Class Name: InstanceHardnessThreshold
Method Name: _fit_resample