Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ New

Fix
~~~
- Replace np.float with float [connorfuhrman]
- Replace np.bool with bool [connorfuhrman]
- Better error handling in robust optimize_restarts. [Felix Berkenkamp]
- Ipywidgets. [mzwiessele]
- Docs using rtd. [mzwiessele]
Expand Down
2 changes: 1 addition & 1 deletion paramz/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.5"
__version__ = "0.9.6"
2 changes: 1 addition & 1 deletion paramz/core/parameter_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def randomize(self, rand_gen=None, *args, **kwargs):
self.optimizer_array = x # makes sure all of the tied parameters get the same init (since there's only one prior object...)
# now draw from prior where possible
x = self.param_array.copy()
unfixlist = np.ones((self.size,),dtype=np.bool)
unfixlist = np.ones((self.size,),dtype=bool)
unfixlist[self.constraints[__fixed__]] = False
self.param_array.flat[unfixlist] = x.view(np.ndarray).ravel()[unfixlist]
self.update_model(updates)
Expand Down
2 changes: 1 addition & 1 deletion paramz/optimization/verbose_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


def exponents(fnow, current_grad):
exps = [np.abs(np.float(fnow)),
exps = [np.abs(float(fnow)),
1 if current_grad is np.nan else current_grad]
return np.sign(exps) * np.log10(exps).astype(int)

Expand Down