Skip to content

setup for experiments with bandits#194

Draft
maypink wants to merge 3 commits intomainfrom
190-experiments-to-compare-random-golem-with-mab
Draft

setup for experiments with bandits#194
maypink wants to merge 3 commits intomainfrom
190-experiments-to-compare-random-golem-with-mab

Conversation

@maypink
Copy link
Collaborator

@maypink maypink commented Sep 15, 2023

WIP

@maypink maypink linked an issue Sep 15, 2023 that may be closed by this pull request
@aim-pep8-bot
Copy link
Collaborator

aim-pep8-bot commented Sep 15, 2023

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

Line 14:1: F401 'examples.synthetic_graph_evolution.utils.draw_graphs_subplots' imported but unused
Line 92:17: F841 local variable 'diversity_filename' is assigned to but never used

Line 65:49: E226 missing whitespace around arithmetic operator

Line 6:1: F401 'numpy as np' imported but unused

Line 3:1: F401 'scipy.stats.mannwhitneyu' imported but unused
Line 6:1: F401 'golem.core.paths.project_root' imported but unused
Line 7:1: F401 'golem.visualisation.opt_history.multiple_fitness_line.MultipleFitnessLines' imported but unused

Line 20:1: F401 'golem.core.optimisers.opt_history_objects.opt_history.OptHistory' imported but unused
Line 22:1: F401 'golem.core.optimisers.optimizer.GraphOptimizer' imported but unused
Line 25:1: F401 'golem.metrics.edit_distance.tree_edit_dist' imported but unused
Line 48:121: E501 line too long (123 > 120 characters)
Line 49:121: E501 line too long (121 > 120 characters)
Line 135:63: F821 undefined name 'graph_name'
Line 135:77: F821 undefined name 'num_nodes'

Line 68:9: F841 local variable 'processed_rewards' is assigned to but never used

Line 5:1: F401 'itertools.chain' imported but unused

Line 6:1: F401 'typing.Tuple' imported but unused

Line 2:1: F401 'pathlib.Path' imported but unused

Comment last updated at 2023-09-19 12:42:01 UTC

@codecov-commenter
Copy link

Codecov Report

Merging #194 (f8bc36d) into main (3234a52) will increase coverage by 0.05%.
Report is 4 commits behind head on main.
The diff coverage is 74.61%.

@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
+ Coverage   74.13%   74.19%   +0.05%     
==========================================
  Files         129      130       +1     
  Lines        7687     7777      +90     
==========================================
+ Hits         5699     5770      +71     
- Misses       1988     2007      +19     
Files Changed Coverage Δ
golem/core/dag/graph.py 77.01% <ø> (ø)
golem/visualisation/opt_history/fitness_line.py 35.15% <0.00%> (ø)
golem/core/optimisers/adaptive/reward_agent.py 47.61% <47.61%> (ø)
...misers/adaptive/mab_agents/contextual_mab_agent.py 35.71% <50.00%> (+4.04%) ⬆️
...olem/core/optimisers/genetic/operators/mutation.py 89.21% <50.00%> (ø)
golem/core/optimisers/adaptive/context_agents.py 72.41% <61.53%> (-12.40%) ⬇️
golem/core/optimisers/populational_optimizer.py 95.49% <66.66%> (-0.81%) ⬇️
...m/core/optimisers/adaptive/mab_agents/mab_agent.py 75.00% <81.57%> (+34.45%) ⬆️
...ore/optimisers/genetic/operators/base_mutations.py 91.32% <85.71%> (-0.05%) ⬇️
golem/core/optimisers/adaptive/operator_agent.py 90.24% <90.00%> (-0.94%) ⬇️
... and 5 more

... and 1 file with indirect coverage changes

@pep8speaks
Copy link

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

Line 14:1: F401 'examples.synthetic_graph_evolution.utils.draw_graphs_subplots' imported but unused
Line 92:17: F841 local variable 'diversity_filename' is assigned to but never used

Line 6:1: F401 'numpy as np' imported but unused

Line 3:1: F401 'scipy.stats.mannwhitneyu' imported but unused
Line 6:1: F401 'golem.core.paths.project_root' imported but unused
Line 7:1: F401 'golem.visualisation.opt_history.multiple_fitness_line.MultipleFitnessLines' imported but unused

Line 20:1: F401 'golem.core.optimisers.opt_history_objects.opt_history.OptHistory' imported but unused
Line 22:1: F401 'golem.core.optimisers.optimizer.GraphOptimizer' imported but unused
Line 25:1: F401 'golem.metrics.edit_distance.tree_edit_dist' imported but unused
Line 48:121: E501 line too long (123 > 120 characters)
Line 49:121: E501 line too long (121 > 120 characters)
Line 135:63: F821 undefined name 'graph_name'
Line 135:77: F821 undefined name 'num_nodes'

Line 68:9: F841 local variable 'processed_rewards' is assigned to but never used

Line 5:1: F401 'itertools.chain' imported but unused

Line 6:1: F401 'typing.Tuple' imported but unused

Line 2:1: F401 'pathlib.Path' imported but unused

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.

Experiments to compare random GOLEM with MAB

4 participants