aimclub / GOLEM

Graph Optimiser for Learning and Evolution of Models
https://thegolem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
63 stars 7 forks source link

setup for experiments with bandits #194

Open maypink opened 1 year ago

maypink commented 1 year ago

WIP

aim-pep8-bot commented 1 year ago

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 commented 1 year ago

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%) :arrow_up:
...olem/core/optimisers/genetic/operators/mutation.py 89.21% <50.00%> (ø)
golem/core/optimisers/adaptive/context_agents.py 72.41% <61.53%> (-12.40%) :arrow_down:
golem/core/optimisers/populational_optimizer.py 95.49% <66.66%> (-0.81%) :arrow_down:
...m/core/optimisers/adaptive/mab_agents/mab_agent.py 75.00% <81.57%> (+34.45%) :arrow_up:
...ore/optimisers/genetic/operators/base_mutations.py 91.32% <85.71%> (-0.05%) :arrow_down:
golem/core/optimisers/adaptive/operator_agent.py 90.24% <90.00%> (-0.94%) :arrow_down:
... and 5 more

... and 1 file with indirect coverage changes

pep8speaks commented 1 year ago

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