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

Adressing some major issues with learning #212

Merged
merged 2 commits into from
Sep 28, 2023
Merged

Conversation

nick-harder
Copy link
Member

-fixed evaluation average reward calculation
-fixed saving learned strategies
-fixes profit and regret calculations
-fixed missing unit_id in rejected orders
-fixed issue when mcp is tensor
-fixed some dashboards
-fixed use of variable cost while inputs use fixed cost -added check if learning is on but no RL strategies are given -query for evarge reward in eval raises an error if not available

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (9dcd4d5) 82.02% compared to head (a0d1a09) 81.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   82.02%   81.94%   -0.08%     
==========================================
  Files          39       39              
  Lines        4056     4055       -1     
==========================================
- Hits         3327     3323       -4     
- Misses        729      732       +3     
Flag Coverage Δ
pytest 81.94% <97.87%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
assume/common/base.py 78.22% <100.00%> (ø)
assume/common/forecasts.py 85.36% <100.00%> (ø)
assume/common/outputs.py 80.61% <100.00%> (-1.12%) ⬇️
assume/common/units_operator.py 91.00% <100.00%> (+0.09%) ⬆️
assume/markets/base_market.py 89.44% <100.00%> (ø)
assume/markets/clearing_algorithms/simple.py 95.65% <100.00%> (-0.07%) ⬇️
assume/strategies/learning_strategies.py 95.86% <100.00%> (+0.82%) ⬆️
assume/units/powerplant.py 90.47% <ø> (-1.39%) ⬇️
assume/common/scenario_loader.py 88.77% <88.88%> (-0.40%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@maurerle maurerle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should address the generated issue in the clearing in a proper way to still add the leftover, everytime we have enough demand/supply.

Having the same amount of orders as submitted is also an open request for clearing improvements from #133

Other than that it looks good!

assume/common/outputs.py Show resolved Hide resolved
assume/markets/clearing_algorithms/simple.py Show resolved Hide resolved
@maurerle maurerle force-pushed the fix-learning-strategies branch 2 times, most recently from d33d624 to a0d1a09 Compare September 28, 2023 07:57
nick-harder and others added 2 commits September 28, 2023 10:04
-fixed saving learned strategies
-fixes profit and regret calculations
-fixed missing unit_id in rejected orders
-fixed issue when mcp is tensor
-fixed some dashboards
-fixed use of variable cost while inputs use fixed cost
-added check if learning is on but no RL strategies are given
-query for evarge reward in eval raises an error if not available
-update dashboard
@maurerle maurerle force-pushed the fix-learning-strategies branch from a0d1a09 to 5f1b792 Compare September 28, 2023 08:05
@maurerle maurerle merged commit 1bd92c8 into main Sep 28, 2023
2 checks passed
@maurerle maurerle deleted the fix-learning-strategies branch September 28, 2023 08:05
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

Successfully merging this pull request may close these issues.

2 participants