Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error performing df.values in __call__() method of class log_posterior_probability() when optimising a model with a timeseries of length 1 #63

Open
twallema opened this issue Aug 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@twallema
Copy link
Owner

I accidently tried optimising a model to a timeseries with only one datapoint,

date
2020-03-15    2753.51636
Name: GDP, dtype: float64

Which resulted in an error on the following line in __call__() of class log_posterior_probability(),

ydata = np.expand_dims(df.squeeze().values,axis=1)

Specifically, the .values method of df.squeeze() does not work and results in the following error,

AttributeError: 'numpy.float64' object has no attribute 'values'

It's a specific situation but I may need to address this at some point.

@twallema twallema added the bug Something isn't working label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant