Skip to content

Commit

Permalink
prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Feb 18, 2021
1 parent e107617 commit 756c32d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 0.4.18

* ADD #164: New method `rvs` for hyperparameters to allow them being used with scikit-learn's
hyperparameter optimization tools.
* FIX #173: Fixes a numpy ABI incompatibility problem with numpy 1.20

# Version 0.4.17

* MAINT #168: Support for Python. 3.9.X
Expand Down
2 changes: 1 addition & 1 deletion test/test_hyperparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ def test_rvs(self):
# test that returned types are correct
# if size=None, return a value, but if size=1, return a 1-element array
self.assertIsInstance(f1.rvs(), float)
self.assertIsInstance(1.rvs(size=1), np.ndarray)
self.assertIsInstance(f1.rvs(size=1), np.ndarray)
self.assertIsInstance(f1.rvs(size=2), np.ndarray)

self.assertAlmostEqual(f1.rvs(random_state=100), f1.rvs(random_state=100))
Expand Down

0 comments on commit 756c32d

Please sign in to comment.