Extracting results for quantstats
See original GitHub issueHello,
after creating a model and running results = model.learn(int(1000))
how do I use the results to compare with a benchmark in quantstats?
Currently the results doesn’t hold the data that quantstats expect to be able to use in conjunction with qs.reports.html(results, "SPY", output="D:\ReinforcementLearning\BaseLines\Trading\Myreport.html")
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Extracting results from stable baselines environment · Issue #38
Hello, after creating a model in the stable baselines library anytrading (https://github.com/AminHP/gym-anytrading) and running the ...
Read more >QuantStats: Portfolio Analytics with Python Tutorial - YouTube
QuantStats : Portfolio Analytics with Python Tutorial. Watch later ... An error occurred while retrieving sharing information.
Read more >How to use the quantstats.stats function in QuantStats - Snyk
To help you get started, we've selected a few quantstats.stats examples, based on popular ways it is used in public projects.
Read more >The easiest way to evaluate the performance of trading ...
... library and provide performance results based only on a provided series of returns. ... We can now inspect the extracted elements:
Read more >Pulling All Sorts of Financial Data in Python [Updated for 2021]
But there is a work around. The Quantstat Github repo written by Ran Aroussi provides a Python library that connects to the Yahoo...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi again. Can you try this code and check if it works?
@AminHP just ran the test code you posted. Damn you are an absolute champ. Going to implement this with my own my RL now and I just want to thank you a lot! Perhaps for even easier implementation it would be possible to get the returns variable through a profit function that could easily be built into gym-anytrading.
Thanks a lot!