Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some bugs #55

Merged
merged 1 commit into from
Jan 20, 2022
Merged

fix some bugs #55

merged 1 commit into from
Jan 20, 2022

Conversation

ZhiboRao
Copy link
Member

No description provided.

@sourcery-ai
Copy link

sourcery-ai bot commented Jan 20, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 2.93 ⭐ 2.69 ⭐ -0.24 👍
Method Length 42.78 ⭐ 41.59 ⭐ -1.19 👍
Working memory 7.59 🙂 7.53 🙂 -0.06 👍
Quality 77.61% 79.08% 1.47% 👍
Other metrics Before After Change
Lines 235 227 -8
Changed files Quality Before Quality After Quality Change
Source/JackFramework/Core/build_training_graph.py 77.61% ⭐ 79.08% ⭐ 1.47% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
Source/JackFramework/Core/build_training_graph.py BuildGraph.adjust_lr_scheduler 7 ⭐ 65 🙂 14 😞 60.61% 🙂 Extract out complex expressions
Source/JackFramework/Core/build_training_graph.py BuildGraph.train_model 3 ⭐ 108 🙂 11 😞 63.04% 🙂 Extract out complex expressions
Source/JackFramework/Core/build_training_graph.py BuildGraph.val_model 3 ⭐ 82 🙂 11 😞 66.67% 🙂 Extract out complex expressions
Source/JackFramework/Core/build_training_graph.py BuildGraph.__calculation_process 1 ⭐ 52 ⭐ 10 😞 75.17% ⭐ 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!

Help us improve this quality report!

@ZhiboRao ZhiboRao merged commit 1e85ec3 into master Jan 20, 2022
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.

None yet

1 participant