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
when trying out this repository, i installed it in a explorative and "complex" conda environment. I tried running the jupyter content and the Readme.md content, but i ran into problems with the following lines
estimates_from_bootstrap = []
ar_estimates_from_bootstrap = np.zeros((B, ))
for b in range(B):
y_bootstrap = y_star_cb[b, :]
ar_bootstrap = AR(y_bootstrap)
estimate_from_bootstrap = ar_bootstrap.fit(maxlag=1)
estimates_from_bootstrap.append(estimate_from_bootstrap)
ar_estimates_from_bootstrap[b] = estimate_from_bootstrap.params[1]
for b in range(B):
y_bootstrap = y_star_cb[b, :]
ar_bootstrap = AR(y_bootstrap)
estimate_from_bootstrap = ar_bootstrap.fit(maxlag=1)
estimates_from_bootstrap.append(estimate_from_bootstrap)
ar_estimates_from_bootstrap[b] = estimate_from_bootstrap.params[1]
Traceback (most recent call last):
File "/home/many/miniconda3/envs/NTRfC/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-4185b4e22b07>", line 3, in <module>
ar_bootstrap = AR(y_bootstrap)
TypeError: AutoReg.__init__() missing 1 required positional argument: 'lags'
and with the argument "lags=1" i get another error in the next line
for b in range(B):
y_bootstrap = y_star_cb[b, :]
ar_bootstrap = AR(y_bootstrap, lags=1)
estimate_from_bootstrap = ar_bootstrap.fit(maxlag=1)
estimates_from_bootstrap.append(estimate_from_bootstrap)
ar_estimates_from_bootstrap[b] = estimate_from_bootstrap.params[1]
Traceback (most recent call last):
File "/home/many/miniconda3/envs/NTRfC/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-08e5369de8f2>", line 4, in <module>
estimate_from_bootstrap = ar_bootstrap.fit(maxlag=1)
TypeError: AutoReg.fit() got an unexpected keyword argument 'maxlag'
This code is executing:
for b in range(B):
y_bootstrap = y_star_cb[b, :]
ar_bootstrap = AR(y_bootstrap,lags=1)
estimate_from_bootstrap = ar_bootstrap.fit()
estimates_from_bootstrap.append(estimate_from_bootstrap)
ar_estimates_from_bootstrap[b] = estimate_from_bootstrap.params[1]
description
when trying out this repository, i installed it in a explorative and "complex" conda environment. I tried running the jupyter content and the Readme.md content, but i ran into problems with the following lines
and with the argument "lags=1" i get another error in the next line
This code is executing:
environment
proposed solution
test the repository content in pytest or unittest. i could help with pytest.
The text was updated successfully, but these errors were encountered: