Skip to content

Learning policy fix - #246

Open
maypink wants to merge 9 commits into
mainfrom
245-learning-policy-fix
Open

maypink wants to merge 9 commits into
mainfrom
245-learning-policy-fix

Conversation

@maypink

@maypink maypink commented Dec 7, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

@maypink maypink linked an issue Dec 7, 2023 that may be closed by this pull request
@codecov-commenter

codecov-commenter commented Dec 9, 2023 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.96%. Comparing base (2ee6d82) to head (fc5a5eb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
+ Coverage   72.71%   72.96%   +0.25%     
==========================================
  Files         142      142              
  Lines        8450     8451       +1     
==========================================
+ Hits         6144     6166      +22     
+ Misses       2306     2285      -21     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pep8speaks

pep8speaks commented Dec 14, 2023 •

Copy link
Copy Markdown

Hello @maypink! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 4:1: F401 'matplotlib.pyplot as plt' imported but unused
Line 5:1: F401 'scipy.stats.mannwhitneyu' imported but unused
Line 5:1: F401 'scipy.stats.kruskal' imported but unused
Line 5:1: F401 'scipy.stats.ttest_ind' imported but unused
Line 8:1: F401 'golem.core.paths.project_root' imported but unused

Line 234:121: E501 line too long (124 > 120 characters)
Line 294:121: E501 line too long (121 > 120 characters)

Comment last updated at 2023-12-17 15:46:53 UTC

maypink and others added 3 commits December 17, 2023 18:46
- remove experiment-specific edits of the analyzer scripts (hardcoded local
  paths, commented-out plotting code): the branch now only changes the agents
- fix the saved-MAB numbering regex properly: \d+_mab\.pkl instead of \d*,
  which also matched '_mab.pkl' and crashed on int('') while still ignoring
  multi-digit numbers is what the original \d did
- ContextualMultiArmedBanditAgent now accepts path_to_save and forwards it to
  the base agent; previously the auto-save condition could never trigger
- serialize agents with dill instead of _pickle: the contextual agent holds
  context-function closures that the standard pickle cannot serialize, so
  saving crashed with AttributeError (dill is added to requirements)
- add regression tests: saved file numbering with multi-digit indices and
  non-numeric prefixes; contextual agent state saving on partial_fit
- keep the UCB1 alpha change (1.25 -> 0.8) as the stated purpose of the branch
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.

Learning Policy fix

4 participants