-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Wenn using tranquilo in estimagic, the following warning is raised:
/tranquilo/aggregate_models.py:72: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
intercept = float(vector_model.intercepts)TODO
Under the assumption that vector_model.intercepts has size == 1, we should use np.item to copy the element into a standard Python object:
intercept = vector_model.intercepts.item()Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request