Skip to content

Commit

Permalink
Release 0.7.4 (#49)
Browse files Browse the repository at this point in the history
* fix affine scaling

* bump version
  • Loading branch information
FFroehlich authored Dec 2, 2021
1 parent 0ea8078 commit 376a802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fides/minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,10 @@ def get_affine_scaling(self) -> Tuple[np.ndarray, np.ndarray]:
dv = np.zeros(self.x.shape)

# this implements scaling for variables that are constrained by
# bounds ( i and ii in Definition 2) bounds is equal to lb if grad <
# 0 ub if grad >= 0
# bounds ( i and ii in Definition 2) bounds is equal to ub if grad <
# 0 lb if grad >= 0
bounds = self.lb.copy()
bounds[self.grad >= 0] = self.ub[self.grad >= 0]
bounds[self.grad < 0] = self.ub[self.grad < 0]
bounded = np.isfinite(bounds)
v[bounded] = self.x[bounded] - bounds[bounded]
dv[bounded] = 1
Expand Down
2 changes: 1 addition & 1 deletion fides/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.3"
__version__ = "0.7.4"

0 comments on commit 376a802

Please sign in to comment.