You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If InequalityLoss is called with float arguments for lower and upper, line 28 of losses.py raises an assertion error, since it seems to be expecting numpy arrays, not scalars. It would be nice to have an example or documentation on the use of this, though it produced the correct answer when I used InequalityLoss(.15, np.array([-.05]), np.array([.05])), constraining the results to be between .1 and .2.
The text was updated successfully, but these errors were encountered:
If InequalityLoss is called with float arguments for lower and upper, line 28 of losses.py raises an assertion error, since it seems to be expecting numpy arrays, not scalars. It would be nice to have an example or documentation on the use of this, though it produced the correct answer when I used InequalityLoss(.15, np.array([-.05]), np.array([.05])), constraining the results to be between .1 and .2.
The text was updated successfully, but these errors were encountered: