SforAiDl / genrl

A PyTorch reinforcement learning library for generalizable and reproducible algorithm implementations with an aim to improve accessibility in RL
https://genrl.readthedocs.io
MIT License
403 stars 59 forks source link

Remove try except from bandit trainers #302

Closed threewisemonkeys-as closed 4 years ago

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging 3aac8cec6b2a995af199d33bb0b0f70401431c38 into dc2d58bdade1c5239ccc0925aeda78d1dc59e972 - view on LGTM.com

new alerts:

codecov[bot] commented 4 years ago

Codecov Report

Merging #302 into master will increase coverage by 0.19%. The diff coverage is 90.00%.

@@            Coverage Diff             @@
##           master     #302      +/-   ##
==========================================
+ Coverage   90.87%   91.07%   +0.19%     
==========================================
  Files          88       88              
  Lines        3705     3685      -20     
==========================================
- Hits         3367     3356      -11     
+ Misses        338      329       -9     
Impacted Files Coverage Δ
genrl/trainers/bandit.py 94.52% <89.28%> (+8.00%) :arrow_up:
...nrl/agents/bandits/contextual/common/base_model.py 100.00% <100.00%> (ø)
genrl/agents/bandits/contextual/common/bayesian.py 91.80% <100.00%> (-0.51%) :arrow_down:
genrl/agents/classical/sarsa/sarsa.py 100.00% <0.00%> (+3.84%) :arrow_up: