Skip to content

Commit 58e36be

Browse files
authored
Merge pull request #1083 from automl/development
Release 0.12.3
2 parents 18d2665 + a10b384 commit 58e36be

27 files changed

+1074
-576
lines changed

.landscape.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ repos:
1818
args: [--show-error-codes]
1919
name: mypy auto-sklearn-util
2020
files: autosklearn/util
21+
- id: mypy
22+
args: [--show-error-codes]
23+
name: mypy auto-sklearn-evaluation
24+
files: autosklearn/evaluation
2125
- repo: https://gitlab.com/pycqa/flake8
2226
rev: 3.8.3
2327
hooks:

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,3 @@ Auto-Sklearn 2.0: The Next Generation
2424
Authors: Matthias Feurer, Katharina Eggensperger, Stefan Falkner, Marius Lindauer and Frank Hutter
2525
arXiv:2007.04074 [cs.LG], 2020
2626
https://arxiv.org/abs/2007.04074
27-
28-
## Status
29-
30-
Status for master branch
31-
32-
[![Build Status](https://travis-ci.org/automl/auto-sklearn.svg?branch=master)](https://travis-ci.org/automl/auto-sklearn)
33-
[![Code Health](https://landscape.io/github/automl/auto-sklearn/master/landscape.png)](https://landscape.io/github/automl/auto-sklearn/master)
34-
[![codecov](https://codecov.io/gh/automl/auto-sklearn/branch/master/graph/badge.svg)](https://codecov.io/gh/automl/auto-sklearn)
35-
36-
Status for development branch
37-
38-
[![Build Status](https://travis-ci.org/automl/auto-sklearn.svg?branch=development)](https://travis-ci.org/automl/auto-sklearn)
39-
[![Code Health](https://landscape.io/github/automl/auto-sklearn/development/landscape.png)](https://landscape.io/github/automl/auto-sklearn/development)
40-
[![codecov](https://codecov.io/gh/automl/auto-sklearn/branch/development/graph/badge.svg)](https://codecov.io/gh/automl/auto-sklearn)

autosklearn/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Version information."""
22

33
# The following line *must* be the last in the module, exactly as formatted:
4-
__version__ = "0.12.2"
4+
__version__ = "0.12.3"

autosklearn/automl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,8 @@ def cv_results_(self):
12681268

12691269
results['mean_fit_time'] = np.array(mean_fit_time)
12701270
results['params'] = params
1271-
results['rank_test_scores'] = scipy.stats.rankdata(1 - results['mean_test_score'],
1272-
method='min')
1271+
rank_order = -1 * self._metric._sign * results['mean_test_score']
1272+
results['rank_test_scores'] = scipy.stats.rankdata(rank_order, method='min')
12731273
results['status'] = status
12741274
results['budgets'] = budgets
12751275

autosklearn/data/target_validator.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,20 @@ def _check_data(
386386
self.type_of_target,
387387
supported_output_types
388388
))
389+
390+
@property
391+
def classes_(self) -> np.ndarray:
392+
"""
393+
Complies with scikit learn classes_ attribute,
394+
which consist of a ndarray of shape (n_classes,)
395+
where n_classes are the number of classes seen while fitting
396+
a encoder to the targets.
397+
Returns
398+
-------
399+
classes_: np.ndarray
400+
The unique classes seen during encoding of a classifier
401+
"""
402+
if self.encoder is None:
403+
return np.array([])
404+
else:
405+
return self.encoder.categories_[0]

0 commit comments

Comments
 (0)