-
Notifications
You must be signed in to change notification settings - Fork 4
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
hartej (part 2) #10
hartej (part 2) #10
Conversation
backendCore/dl/dl_trainer.py
Outdated
@@ -259,6 +259,10 @@ def train_deep_model( | |||
return train_deep_regression_model( | |||
model, train_loader, test_loader, optimizer, criterion, epochs | |||
) | |||
elif problem_type.upper() == ProblemType.get_problem_obj(ProblemType.NONE): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [pyright] reported by reviewdog 🐶
Cannot access member "NONE" for type "type[ProblemType]"
Member "NONE" is unknown (reportGeneralTypeIssues)
Apply Sweep Rules to your PR?
|
Hey @hartejsingh12, there is an issue in the build check where you have two different, yet similar if conditions that lead to the same outcome. We should clean that up in order to get into the clean code habit |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Fixed! |
@hartejsingh12 Good work on this. I'll be marking your PR as closed since we don't want to actually merge these changes into the real DLP app. Looking forward to your Part 3 PR |
hartej (part 2)
Github Issue Number Here: <YOUR_GITHUB_ISSUE_NUMBER_HERE (include the hashtag)>
What user problem are we solving?
What solution does this PR provide?
Testing Methodology
How did you test your changes and verify that existing
functionality is not broken
Any other considerations
Screen recording:
https://www.youtube.com/watch?v=vcNmMt4-spQ