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
I'm trying to solve a non-linear model which has some lagged variables in it. I was getting an error message putting them in directly into the 'arbitrage' section, so I created new state variables, and added them to the 'transition' section.
Whilst this seems to be fine for perturbation methods, once more than 4 state variables are in the transition section I get a complicated error message. Is this because time iteration doesn't support more than 4 states?
Since github won't let me attach a .yaml, below is a very simple minimum workable example. Its a 3 eq linear new keynesian model where the taylor rule uses some lagged variables (the actual model I'm solving is non-linear, hence the desire to use time iteration). I also include the error message below as well.
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Invalid use of Function(<function _filter_cubic at 0x0000024A0C8E6168>) with argument(s) of type(s): (UniTuple(Tuple(float64, float64, int32) x 5), array(float64, 6d, C))
* parameterized
In definition 0:
TypeError: __filter_cubic() missing 1 required positional argument: 'C'
raised from C:\Users\tmund\Anaconda3\envs\Taylor\lib\site-packages\numba\core\typing\templates.py:579
In definition 1:
TypeError: __filter_cubic() missing 1 required positional argument: 'C'
raised from C:\Users\tmund\Anaconda3\envs\Taylor\lib\site-packages\numba\core\typing\templates.py:579
In definition 2:
UnboundLocalError: local variable '___filter_cubic' referenced before assignment
raised from C:\Users\tmund\Anaconda3\envs\Taylor\lib\site-packages\interpolation\splines\prefilter_cubic.py:293
In definition 3:
UnboundLocalError: local variable '___filter_cubic' referenced before assignment
raised from C:\Users\tmund\Anaconda3\envs\Taylor\lib\site-packages\interpolation\splines\prefilter_cubic.py:293
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: resolving callee type: Function(<function _filter_cubic at 0x0000024A0C8E6168>)
[2] During: typing of call at C:\Users\tmund\Anaconda3\envs\Taylor\lib\site-packages\interpolation\splines\prefilter_cubic.py (298)
File "..\..\..\..\Anaconda3\envs\Taylor\lib\site-packages\interpolation\splines\prefilter_cubic.py", line 298:
def prefilter_cubic(*args):
return _filter_cubic(*args)
^
The text was updated successfully, but these errors were encountered:
yes, interpolation.py doesn't support prefiltering for more than four dimensions . It is issue EconForge/interpolation.py#40 .
What you can probably do is change the interpolation method, try passing interp_method='linear' to time_iteration.
Hello -
I'm trying to solve a non-linear model which has some lagged variables in it. I was getting an error message putting them in directly into the 'arbitrage' section, so I created new state variables, and added them to the 'transition' section.
Whilst this seems to be fine for perturbation methods, once more than 4 state variables are in the transition section I get a complicated error message. Is this because time iteration doesn't support more than 4 states?
Since github won't let me attach a .yaml, below is a very simple minimum workable example. Its a 3 eq linear new keynesian model where the taylor rule uses some lagged variables (the actual model I'm solving is non-linear, hence the desire to use time iteration). I also include the error message below as well.
Any help much appreciated. Great library
Tim
The error message takes the form:
The text was updated successfully, but these errors were encountered: