How to turn off "WARNING: some dates are missed in the portfolio_history"
-
I'm using partial data for testing the performance for machine learning models.
qnt module outputs such warning:
WARNING: some dates are missed in the portfolio_history
I'd like to turn off this warning
But I don't know how to do
Can @support give an example for how to turn off this specific warning?
-
Dear @omohyoid,
You can remove that warning by altering the code of the qnt library which is generally not advised since it can affect many things in your local or online development environment and could lead to different results than expected after submission. For your specific case, you can just remove the line for logging that warning in the qnt/stats.py file in the calc_stat function.Regards
-
@support Thanks for ur help
Is there a way to turn off the warning from the outside of the qnt module? I hope that I can just add a line in my strategy code to call something in the qnt module to remove the warning. -
@omohyoid Hi, we do not have such calls, sorry