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
ok, I will fix logical_or for, I guess, numpy < 2.0
However, that will not fix possible problems if both A and B have no parameters to estimate.
I don't remember how SVAR estimation works, but most likely it cannot handle empty parameters.
Another issue with my current numpy
dtype of A and B
A in example here is float/float64.
A in unit test has dtype "U"
internally stored, attributes A and B are float with np.nan instead of "E".
(A == 'e')
...\Local\Temp\ipykernel_22988\2041847108.py:1: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
(A == 'e')
False
A.astype("U") == "e"
array([[False, False],
[False, False]])
fix with A = A.astype("U") and for B works to get around shape problem
But this example errors then in rank check with eventually ValueError: zero-size array to reduction operation maximum which has no identity
354 J = self._compute_J(A, B)
355 self.check_order(J)
--> 356 self.check_rank(J)
So empty params problems here is in addition to shape problem in #9302
I'm not sure whether we should try to fix that.
It does not have the SVAR simultaneous estimation problem anymore.
I guess it still does not reduce to standard VAR, e.g. it could be a known triangular structure in A.
Activity
josef-pkt commentedon Nov 24, 2024
my guess is that it is the same as #9302
josef-pkt commentedon Nov 24, 2024
mabye not the same
A and B are fully specified, there are no structural params to estimate
But A_mask and B_mask are boolean scalar instead of array.
Something is wrong with shape if a mask is empty.
josef-pkt commentedon Nov 24, 2024
@menghan465 What's your numpy version?
reason that maks is scalar boolean if empty is:
menghan465 commentedon Nov 24, 2024
josef-pkt commentedon Nov 24, 2024
ok, I will fix logical_or for, I guess, numpy < 2.0
However, that will not fix possible problems if both A and B have no parameters to estimate.
I don't remember how SVAR estimation works, but most likely it cannot handle empty parameters.
Another issue with my current numpy
dtype of A and B
A in example here is float/float64.
A in unit test has dtype "U"
internally stored, attributes A and B are float with np.nan instead of "E".
josef-pkt commentedon Nov 24, 2024
fix with
A = A.astype("U")and for B works to get around shape problemBut this example errors then in rank check with eventually
ValueError: zero-size array to reduction operation maximum which has no identitySo empty params problems here is in addition to shape problem in #9302
I'm not sure whether we should try to fix that.
It does not have the SVAR simultaneous estimation problem anymore.
I guess it still does not reduce to standard VAR, e.g. it could be a known triangular structure in A.
[-]Not sure what's wrong with this one.[/-][+]ENH: SVAR with no unknown A, B parameters[/+]