46ae0787a570a8c7ec79c6d46cb66145f129c284,autosklearn/ensembles/ensemble_selection.py,EnsembleSelection,_fast,#EnsembleSelection#Any#Any#,55

Before Change


                    (1. / float(s + 1)) * pred,
                    out=fant_ensemble_prediction
                )
                scores[j] = self.metric._optimum - calculate_score(
                    solution=labels,
                    prediction=fant_ensemble_prediction,
                    task_type=self.task_type,
                    metric=self.metric,
                    all_scoring_functions=False)

            all_best = np.argwhere(scores == np.nanmin(scores)).flatten()
            best = self.random_state.choice(all_best)
            ensemble.append(predictions[best])

After Change


                // when all_scoring_functions=False, we know it will be a float
                calculated_score = cast(
                    float,
                    calculate_score(
                        solution=labels,
                        prediction=fant_ensemble_prediction,
                        task_type=self.task_type,
                        metric=self.metric,
                        all_scoring_functions=False
                    )
                )
                scores[j] = self.metric._optimum - calculated_score

            all_best = np.argwhere(scores == np.nanmin(scores)).flatten()
            best = self.random_state.choice(all_best)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: automl/auto-sklearn
Commit Name: 46ae0787a570a8c7ec79c6d46cb66145f129c284
Time: 2020-07-29
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: autosklearn/ensembles/ensemble_selection.py
Class Name: EnsembleSelection
Method Name: _fast


Project Name: automl/auto-sklearn
Commit Name: eb0ecdd3085c515a528f60684dca50b9caa6764a
Time: 2018-03-21
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/ensembles/ensemble_selection.py
Class Name: EnsembleSelection
Method Name: _fast


Project Name: automl/auto-sklearn
Commit Name: eb0ecdd3085c515a528f60684dca50b9caa6764a
Time: 2018-03-21
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/ensembles/ensemble_selection.py
Class Name: EnsembleSelection
Method Name: _slow


Project Name: automl/auto-sklearn
Commit Name: 46ae0787a570a8c7ec79c6d46cb66145f129c284
Time: 2020-07-29
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: autosklearn/ensembles/ensemble_selection.py
Class Name: EnsembleSelection
Method Name: _slow