BayesWatch / pytorch-experiments-template

A pytorch based classification experiments template
GNU General Public License v3.0
5 stars 1 forks source link

Add EMNIST data loader #56

Closed AntreasAntoniou closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 0.67%.

Quality metrics Before After Change
Complexity 0.52 ⭐ 0.45 ⭐ -0.07 👍
Method Length 72.23 🙂 71.47 🙂 -0.76 👍
Working memory 11.27 😞 11.14 😞 -0.13 👍
Quality 69.79% 🙂 70.46% 🙂 0.67% 👍
Other metrics Before After Change
Lines 314 359 45
Changed files Quality Before Quality After Quality Change
datasets/dataset_loading_hub.py 69.79% 🙂 70.46% 🙂 0.67% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
datasets/dataset_loading_hub.py load_dataset 0 ⭐ 116 🙂 21 ⛔ 54.03% 🙂 Extract out complex expressions
datasets/dataset_loading_hub.py CINIC10Loader.get_data 4 ⭐ 92 🙂 11 😞 64.24% 🙂 Extract out complex expressions
datasets/dataset_loading_hub.py CIFAR10Loader.get_data 0 ⭐ 84 🙂 12 😞 67.64% 🙂 Extract out complex expressions
datasets/dataset_loading_hub.py CIFAR100Loader.get_data 0 ⭐ 84 🙂 12 😞 67.64% 🙂 Extract out complex expressions
datasets/dataset_loading_hub.py ImageNetLoader.get_data 0 ⭐ 87 🙂 11 😞 68.94% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it by mentioning @sourcery-ai in a comment.