Skip to content

Reduce default batch size#77

Merged
davanstrien merged 2 commits intomainfrom
batch-size
Apr 29, 2021
Merged

Reduce default batch size#77
davanstrien merged 2 commits intomainfrom
batch-size

Conversation

@davanstrien
Copy link
Owner

No description provided.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Apr 29, 2021

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 1.07%.

Quality metrics Before After Change
Complexity 0.96 ⭐ 0.96 ⭐ 0.00
Method Length 40.50 ⭐ 41.82 ⭐ 1.32 👎
Working memory 8.62 🙂 8.78 🙂 0.16 👎
Quality 75.73% 74.66% 🙂 -1.07% 👎
Other metrics Before After Change
Lines 197 201 4
Changed files Quality Before Quality After Quality Change
src/flyswot/inference.py 75.73% ⭐ 74.66% 🙂 -1.07% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
src/flyswot/inference.py predict_directory 1 ⭐ 218 ⛔ 15 😞 48.26% 😞 Try splitting into smaller methods. Extract out complex expressions
src/flyswot/inference.py print_table 4 ⭐ 107 🙂 10 😞 64.08% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

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.

@davanstrien davanstrien merged commit f58c299 into main Apr 29, 2021
@davanstrien davanstrien deleted the batch-size branch April 29, 2021 11:01
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.

1 participant