Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to turn off "WARNING: some dates are missed in the portfolio_history"

    Support
    2
    4
    325
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      omohyoid last edited by

      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?
      螢幕擷取畫面 2024-09-08 225205.png

      support 1 Reply Last reply Reply Quote 0
      • support
        support @omohyoid last edited by

        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

        O 1 Reply Last reply Reply Quote 0
        • O
          omohyoid @support last edited by

          @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.

          support 1 Reply Last reply Reply Quote 0
          • support
            support @omohyoid last edited by

            @omohyoid Hi, we do not have such calls, sorry

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors
            • Documentation
            • About
            • Career
            • My account
            • Privacy policy
            • Terms and Conditions
            • Cookies policy
            Home
            Copyright © 2014 - 2021 Quantiacs LLC.
            Powered by NodeBB | Contributors