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

Can this module be used to minute data as well as daily data? #86

Open
SpenceSidne08 opened this issue Nov 10, 2022 · 4 comments
Open

Comments

@SpenceSidne08
Copy link

Hi
As I mentioned in the title, I'd like to put some price minute data. But it seems not to work when I just put them in the module.
If I can use this module to analyze minute data, could you tell me how to do it.
Thank you for your effort and post. It's so cool module and always helpful.

@Joshwani
Copy link
Contributor

Hi @SpenceSidne08,
Thank you for the kind words. We should be able to apply the model to minutely data. Are you able to provide a sample of the data you are analyzing? I could create a proof of concept in a shared notebook.
Best,
Josh

@SpenceSidne08
Copy link
Author

Thank you Josh! Sure!
This is the data.
to_csv_out.csv

@Joshwani
Copy link
Contributor

Here is an example https://colab.research.google.com/drive/1iDvGHyclOsHImQI4qRQNL3_xvmjxnc3D?usp=sharing
The trick is to convert time to evenly spaced numbers over a specified interval via numpy's linspace function. You lose timestamps but these can be reversed after the model has been fit.

Also, it looks like you may be interested in antibubbles, the current package doesn't support antibubbles yet. However, if you fork the repo you can achieve antibubble fits by changing tc - t to t - tc in the lppls method.

@SpenceSidne08
Copy link
Author

Awesome! Thank you very much! It's a kind of technical but intelligent trick.
If you don't mind it, could you show me how to adapt CMA-ES to the code above you sent me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants