Skip to content

Solene#51

Merged
BatyLeo merged 6 commits intoJuliaDecisionFocusedLearning:mainfrom
sdelannoypavy:solene
Jan 12, 2026
Merged

Solene#51
BatyLeo merged 6 commits intoJuliaDecisionFocusedLearning:mainfrom
sdelannoypavy:solene

Conversation

@sdelannoypavy
Copy link
Copy Markdown
Contributor

Changes

  • Added maintenance benchmark
  • Changed "observe" method for DAP so that it returns a tuple with features and state and not just features. For some algorithms such are mirror descent we need the state and not just the features. Also maybe we should standardize the method across all benchmarks.

Copy link
Copy Markdown
Member

@BatyLeo BatyLeo left a comment

Choose a reason for hiding this comment

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

Very clean first Pull Request!

Here are some comments. Additionally, some tests are failing:

  • To fix JuliaFormatter tests, you need to run JuliaFormatter formatting:
] add JuliaFormatter@v1  # you need to use version 1.x (not the latest version 2.x)
using JuliaFormatter, DecisionFocusedLearningBenchmarks
format(DecisionFocusedLearningBenchmarks)
  • Since you changed the observe output of DAP, one the failing tests need to be adjusted
  • Documentation is failing because it needs a Maintenance section in the api.md file that imports docstrings. Also, it would be nice to add a documentation page describing the mathematical formulation of the Maintenance problem. For this, just create a maintenance.md file in the benchmarks folder in the documentation. See the example for DAP here.

Comment thread src/DynamicAssortment/environment.jl
Comment thread src/DynamicAssortment/environment.jl Outdated
Comment thread src/Maintenance/Maintenance.jl Outdated
Comment thread src/Maintenance/Maintenance.jl
Comment thread src/Maintenance/Maintenance.jl Outdated
Comment thread src/Maintenance/environment.jl Outdated
Comment thread src/Maintenance/Maintenance.jl Outdated
Comment thread src/Maintenance/environment.jl Outdated
Comment thread src/Maintenance/environment.jl Outdated
Comment thread src/Maintenance/maximizer.jl Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/DecisionFocusedLearningBenchmarks.jl 100.00% <ø> (ø)
src/DynamicAssortment/environment.jl 100.00% <100.00%> (ø)
src/Maintenance/Maintenance.jl 100.00% <100.00%> (ø)
src/Maintenance/environment.jl 100.00% <100.00%> (ø)
src/Maintenance/instance.jl 100.00% <100.00%> (ø)
src/Maintenance/maximizer.jl 100.00% <100.00%> (ø)
src/Maintenance/policies.jl 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BatyLeo BatyLeo merged commit e3bf6ff into JuliaDecisionFocusedLearning:main Jan 12, 2026
4 checks passed
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