NeuromatchAcademy / course-content-dl

NMA deep learning course
https://deeplearning.neuromatch.io/
Creative Commons Attribution 4.0 International
745 stars 270 forks source link

W3d5 edits #782

Closed spirosChv closed 2 years ago

spirosChv commented 2 years ago
github-actions[bot] commented 2 years ago
W3D5_Tutorial1 W3D5_Tutorial2 W3D5_Tutorial3 W3D5_Tutorial4
Instructor Open In Colab Open In Colab Open In Colab Open In Colab
Student Open In Colab Open In Colab Open In Colab Open In Colab
Code report for W3D5_Tutorial1 Code report for W3D5_Tutorial1.ipynb ==================================== Quality (pyflakes) ------------------ Total code issues: 22 Cell 1, Line 4: f-string is missing placeholders Cell 3, Line 8: 'torch.optim' imported but unused Cell 4, Line 10: redefinition of unused 'random' from line 16 Cell 4, Line 11: redefinition of unused 'torch' from line 15 Cell 7, Line 7: redefinition of unused 'os' from line 14 Cell 7, Line 34: 'from utils import *' used; unable to detect undefined names Cell 7, Line 36: 'MCTS.MCTS' imported but unused Cell 7, Line 37: 'NeuralNet.NeuralNet' imported but unused Cell 8, Line 1: 'dotdict' may be undefined, or defined from star imports: utils Cell 9, Line 13: f-string is missing placeholders Cell 9, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 9, Line 20: f-string is missing placeholders Cell 9, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 9, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 10, Line 13: f-string is missing placeholders Cell 10, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 10, Line 20: f-string is missing placeholders Cell 10, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 10, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 14, Line 31: local variable 'valids' is assigned to but never used Cell 14, Line 35: local variable 'prob' is assigned to but never used Cell 15, Line 2: redefinition of unused 'RandomPlayer' from line 448 Style (pycodestyle) ------------------- Total PEP8 violations: 76 Common problems: - 21 instances of E402 (module level import not at top of file) - 10 instances of E226 (missing whitespace around arithmetic operator) - 6 instances of E225 (missing whitespace around operator) - 4 instances of E266 (too many leading '#' for block comment) - 3 instances of E302 (expected 2 blank lines, found 0) - 2 instances of E302 (expected 2 blank lines, found 1) - 2 instances of E501 (line too long (95 > 88 characters)) - 2 instances of E128 (continuation line under-indented for visual indent) - 2 instances of E305 (expected 2 blank lines after class or function definition, found 0) - 2 instances of E301 (expected 1 blank line, found 0) ---
Code report for W3D5_Tutorial2 Code report for W3D5_Tutorial2.ipynb ==================================== Quality (pyflakes) ------------------ Total code issues: 25 Cell 1, Line 4: f-string is missing placeholders Cell 4, Line 10: redefinition of unused 'random' from line 17 Cell 4, Line 11: redefinition of unused 'torch' from line 16 Cell 7, Line 7: redefinition of unused 'os' from line 14 Cell 7, Line 34: 'from utils import *' used; unable to detect undefined names Cell 8, Line 67: 'board' may be undefined, or defined from star imports: utils Cell 8, Line 68: 'board' may be undefined, or defined from star imports: utils Cell 9, Line 1: 'dotdict' may be undefined, or defined from star imports: utils Cell 10, Line 13: f-string is missing placeholders Cell 10, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 10, Line 20: f-string is missing placeholders Cell 10, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 10, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 13, Line 78: local variable 'pi' is assigned to but never used Cell 13, Line 79: local variable 'v' is assigned to but never used Cell 14, Line 2: redefinition of unused 'OthelloNNet' from line 462 Cell 15, Line 84: local variable 'start' is assigned to but never used Cell 16, Line 2: redefinition of unused 'ValueNetwork' from line 641 Cell 16, Line 78: local variable 'start' is assigned to but never used Cell 18, Line 13: f-string is missing placeholders Cell 18, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 18, Line 20: f-string is missing placeholders Cell 18, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 18, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 20, Line 56: local variable 'value' is assigned to but never used Style (pycodestyle) ------------------- Total PEP8 violations: 140 Common problems: - 25 instances of E402 (module level import not at top of file) - 15 instances of E266 (too many leading '#' for block comment) - 9 instances of E226 (missing whitespace around arithmetic operator) - 8 instances of E302 (expected 2 blank lines, found 0) - 6 instances of E225 (missing whitespace around operator) - 4 instances of E501 (line too long (101 > 88 characters)) - 4 instances of E501 (line too long (112 > 88 characters)) - 4 instances of E501 (line too long (120 > 88 characters)) - 4 instances of E501 (line too long (108 > 88 characters)) - 3 instances of E302 (expected 2 blank lines, found 1) ---
Code report for W3D5_Tutorial3 Code report for W3D5_Tutorial3.ipynb ==================================== Quality (pyflakes) ------------------ Total code issues: 28 Cell 1, Line 4: f-string is missing placeholders Cell 4, Line 10: redefinition of unused 'random' from line 17 Cell 4, Line 11: redefinition of unused 'torch' from line 16 Cell 7, Line 7: redefinition of unused 'os' from line 14 Cell 7, Line 34: 'from utils import *' used; unable to detect undefined names Cell 8, Line 67: 'board' may be undefined, or defined from star imports: utils Cell 8, Line 68: 'board' may be undefined, or defined from star imports: utils Cell 8, Line 437: local variable 'start' is assigned to but never used Cell 9, Line 1: 'dotdict' may be undefined, or defined from star imports: utils Cell 11, Line 13: f-string is missing placeholders Cell 11, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 11, Line 20: f-string is missing placeholders Cell 11, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 11, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 12, Line 85: local variable 'start' is assigned to but never used Cell 13, Line 2: redefinition of unused 'PolicyNetwork' from line 765 Cell 13, Line 79: local variable 'start' is assigned to but never used Cell 15, Line 13: f-string is missing placeholders Cell 15, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 15, Line 20: f-string is missing placeholders Cell 15, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 15, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 17, Line 48: local variable 'action_probs' is assigned to but never used Cell 26, Line 13: f-string is missing placeholders Cell 26, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 26, Line 20: f-string is missing placeholders Cell 26, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 26, Line 31: 'display' may be undefined, or defined from star imports: utils Style (pycodestyle) ------------------- Total PEP8 violations: 150 Common problems: - 26 instances of E402 (module level import not at top of file) - 13 instances of E226 (missing whitespace around arithmetic operator) - 13 instances of E266 (too many leading '#' for block comment) - 8 instances of E231 (missing whitespace after ',') - 7 instances of E302 (expected 2 blank lines, found 1) - 7 instances of E225 (missing whitespace around operator) - 5 instances of E302 (expected 2 blank lines, found 0) - 4 instances of E501 (line too long (101 > 88 characters)) - 4 instances of E501 (line too long (107 > 88 characters)) - 3 instances of E261 (at least two spaces before inline comment) ---
Code report for W3D5_Tutorial4 Code report for W3D5_Tutorial4.ipynb ==================================== Quality (pyflakes) ------------------ Total code issues: 54 Cell 1, Line 4: f-string is missing placeholders Cell 4, Line 10: redefinition of unused 'random' from line 18 Cell 4, Line 11: redefinition of unused 'torch' from line 17 Cell 7, Line 7: redefinition of unused 'os' from line 14 Cell 7, Line 34: 'from utils import *' used; unable to detect undefined names Cell 8, Line 67: 'board' may be undefined, or defined from star imports: utils Cell 8, Line 68: 'board' may be undefined, or defined from star imports: utils Cell 8, Line 437: local variable 'start' is assigned to but never used Cell 8, Line 644: local variable 'start' is assigned to but never used Cell 9, Line 1: 'dotdict' may be undefined, or defined from star imports: utils Cell 10, Line 22: 'loadTrainExamples' may be undefined, or defined from star imports: utils Cell 11, Line 13: f-string is missing placeholders Cell 11, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 11, Line 20: f-string is missing placeholders Cell 11, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 11, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 12, Line 45: local variable 'init_start_state' is assigned to but never used Cell 12, Line 47: local variable 'isfirstAction' is assigned to but never used Cell 12, Line 81: local variable 'a' is assigned to but never used Cell 13, Line 2: redefinition of unused 'MonteCarlo' from line 965 Cell 13, Line 46: local variable 'init_start_state' is assigned to but never used Cell 13, Line 48: local variable 'isfirstAction' is assigned to but never used Cell 14, Line 13: f-string is missing placeholders Cell 14, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 14, Line 20: f-string is missing placeholders Cell 14, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 14, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 16, Line 49: local variable 's' is assigned to but never used Cell 16, Line 71: local variable 'top_k_actions' is assigned to but never used Cell 16, Line 82: local variable 'next_s' is assigned to but never used Cell 16, Line 136: 'dotdict' may be undefined, or defined from star imports: utils Cell 17, Line 2: redefinition of unused 'MonteCarloBasedPlayer' from line 1178 Cell 17, Line 45: local variable 's' is assigned to but never used Cell 17, Line 125: 'dotdict' may be undefined, or defined from star imports: utils Cell 20, Line 13: f-string is missing placeholders Cell 20, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 20, Line 20: f-string is missing placeholders Cell 20, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 20, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 22, Line 13: f-string is missing placeholders Cell 22, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 22, Line 20: f-string is missing placeholders Cell 22, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 22, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 23, Line 1: redefinition of unused 'MCTS' from line 152 Cell 24, Line 2: redefinition of unused 'MCTS' from line 1554 Cell 25, Line 13: f-string is missing placeholders Cell 25, Line 15: 'display' may be undefined, or defined from star imports: utils Cell 25, Line 20: f-string is missing placeholders Cell 25, Line 22: 'display' may be undefined, or defined from star imports: utils Cell 25, Line 31: 'display' may be undefined, or defined from star imports: utils Cell 27, Line 101: 'dotdict' may be undefined, or defined from star imports: utils Cell 28, Line 2: redefinition of unused 'MonteCarloTreeSearchBasedPlayer' from line 1835 Cell 28, Line 89: 'dotdict' may be undefined, or defined from star imports: utils Style (pycodestyle) ------------------- Total PEP8 violations: 209 Common problems: - 30 instances of E402 (module level import not at top of file) - 19 instances of E266 (too many leading '#' for block comment) - 16 instances of E226 (missing whitespace around arithmetic operator) - 11 instances of E225 (missing whitespace around operator) - 11 instances of E501 (line too long (101 > 88 characters)) - 9 instances of E302 (expected 2 blank lines, found 1) - 8 instances of E302 (expected 2 blank lines, found 0) - 8 instances of E231 (missing whitespace after ',') - 7 instances of E231 (missing whitespace after ':') - 6 instances of E501 (line too long (90 > 88 characters)) ---