Skip to content

Commit 2ad8da1

Browse files
Asklearn development with smac development test (#1187)
* Changes required to test if will work with smac@development * Changes required to test if will work with smac@development * Fixed failing tests with new scipy 1.7 on sparse data * flake8'd * Use SMAC from pypi again * undo changes Co-authored-by: Matthias Feurer <feurerm@informatik.uni-freiburg.de>
1 parent 53daf7e commit 2ad8da1

File tree

3 files changed

+47
-15
lines changed

3 files changed

+47
-15
lines changed

doc/releases.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,38 @@
99
Releases
1010
========
1111

12+
Version 0.13.0
13+
==============
14+
15+
* ADD #1100: Provide access to the callbacks of SMAC.
16+
* ADD #1185: New leaderboard functionality to visualize models
17+
* FIX #1133: Refer to the correct attribute in an error message.
18+
* FIX #1154: Allow running Auto-sklearn on a 32-bit system.
19+
* MAINT #924: Instead of passing classes for the resampling strategy one has now to pass objects.
20+
* MAINT #1108: Limit the number of threads used by numpy and/or scikit-learn via `threadpoolctl`.
21+
* MAINT #1135: Simplify internal workflow of pandas handling. This results in pandas being passed
22+
directly passed to scikit-learn models instead of being internally converted into a numpy array.
23+
However, this should neither impact the behavior nor the performance of Auto-sklearn.
24+
* MAINT #1157: Drop support for Python 3.6, enable support for Python 3.9.
25+
* MAINT #1159: Remove the output directory argument to the classifier and regressor. Despite the
26+
name, the output directory was not used and was a leftover from participating in the AutoML
27+
challenges.
28+
* MAINT #1187: Bump requires SMAC version to at least 0.14.
29+
* DOC #1109: Add an FAQ.
30+
* DOC #1126: Add new examples on how to use scikit-learn's inspect module.
31+
* DOC #1136: Add a new example on how to perform multi-output regression.
32+
* DOC #1152: Enable link checking when buiding the documentation.
33+
* DOC #1158: New example on how to configure the logger for Auto-sklearn.
34+
* DOC #1165: Improve the readme page.
35+
36+
Contributors v0.13.0
37+
********************
38+
39+
* Matthias Feurer
40+
* Eddie Bergman
41+
* bitsbuffer
42+
* Francisco Rivera Valverde
43+
1244
Version 0.12.7
1345
==============
1446

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ setuptools
22
typing_extensions
33

44
numpy>=1.9.0
5-
scipy>=0.14.1,<1.7.0
5+
scipy>=1.7.0
66

77
joblib
88
scikit-learn>=0.24.0,<0.25.0
@@ -17,4 +17,4 @@ threadpoolctl
1717
ConfigSpace>=0.4.14,<0.5
1818
pynisher>=0.6.3
1919
pyrfr>=0.8.1,<0.9
20-
smac>=0.13.1,<0.14
20+
smac>=0.14

test/test_metalearning/pyMetaLearn/test_meta_features_sparse.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -256,28 +256,28 @@ def test_symbols_sum(sparse_data):
256256

257257
def test_skewnesses(sparse_data_transformed):
258258
X_transformed, y, categorical_transformed = sparse_data_transformed
259-
fixture = [0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0,
260-
1.0, 0.0, -1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0,
261-
0.0, 0.0, -1.0, 0.0, 0.0, 0.0,
262-
-0.6969708499033568, 0.626346013011263,
263-
0.3809987596624038, 1.4762248835141034,
264-
0.07687661087633726, 0.36889797830360116]
259+
fixture = [
260+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
261+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
262+
-0.696970849903357, 0.626346013011262, 0.38099875966240554,
263+
1.4762248835141032, 0.07687661087633788, 0.3688979783036015
264+
]
265265
mf = meta_features.helper_functions["Skewnesses"](X_transformed, y, logging.getLogger('Meta'))
266266
print(mf.value)
267267
print(fixture)
268268
np.testing.assert_allclose(mf.value, fixture)
269269

270270

271271
def test_kurtosisses(sparse_data_transformed):
272-
fixture = [-3.0, -3.0, -2.0, -2.0, -3.0, -3.0, -3.0, -3.0,
273-
-3.0, -2.0, -3.0, -2.0, -3.0, -3.0, -2.0, -3.0,
274-
-3.0, -3.0, -3.0, -3.0, -3.0, -2.0, -3.0,
275-
-3.0, -3.0, -1.1005836114255765,
276-
-1.1786325509475712, -1.2387998382327912,
277-
1.393438264413704, -0.9768209837948336,
278-
-1.7937072296512782]
272+
fixture = [
273+
-3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0,
274+
-3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0, -3.0,
275+
-3.0, -1.1005836114255763, -1.1786325509475744, -1.23879983823279,
276+
1.3934382644137013, -0.9768209837948336, -1.7937072296512784
277+
]
279278
X_transformed, y, categorical_transformed = sparse_data_transformed
280279
mf = meta_features.helper_functions["Kurtosisses"](X_transformed, y, logging.getLogger('Meta'))
280+
print(mf.value)
281281
np.testing.assert_allclose(mf.value, fixture)
282282

283283

0 commit comments

Comments
 (0)