delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
45 stars 18 forks source link

Updates to RL environment to use lazy PNL (From #1561) #1580

Closed wshainin closed 4 days ago

wshainin commented 1 week ago

Incorporating changes from #1561 into FullHyperDriveEnv in traiderdaive. PNL is now only calculated when it's needed (Agent observation and reward) Changed where terminated is being flagged. Removed dead ref

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.45%. Comparing base (735ba23) to head (1ee43c3).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1580 +/- ## ========================================== + Coverage 81.40% 81.45% +0.05% ========================================== Files 98 98 Lines 7302 7302 ========================================== + Hits 5944 5948 +4 + Misses 1358 1354 -4 ``` | [Flag](https://app.codecov.io/gh/delvtech/agent0/pull/1580/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/delvtech/agent0/pull/1580/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech) | `81.45% <ø> (+0.05%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.