Skip to content

Commit 756c32d

Browse files
committed
prepare new release
1 parent e107617 commit 756c32d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Version 0.4.18
2+
3+
* ADD #164: New method `rvs` for hyperparameters to allow them being used with scikit-learn's
4+
hyperparameter optimization tools.
5+
* FIX #173: Fixes a numpy ABI incompatibility problem with numpy 1.20
6+
17
# Version 0.4.17
28

39
* MAINT #168: Support for Python. 3.9.X

test/test_hyperparameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ def test_rvs(self):
10941094
# test that returned types are correct
10951095
# if size=None, return a value, but if size=1, return a 1-element array
10961096
self.assertIsInstance(f1.rvs(), float)
1097-
self.assertIsInstance(1.rvs(size=1), np.ndarray)
1097+
self.assertIsInstance(f1.rvs(size=1), np.ndarray)
10981098
self.assertIsInstance(f1.rvs(size=2), np.ndarray)
10991099

11001100
self.assertAlmostEqual(f1.rvs(random_state=100), f1.rvs(random_state=100))

0 commit comments

Comments
 (0)