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

hartej (part 2) #10

Closed
wants to merge 5 commits into from
Closed

hartej (part 2) #10

wants to merge 5 commits into from

Conversation

hartejsingh12
Copy link
Collaborator

@hartejsingh12 hartejsingh12 commented Nov 22, 2023

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

@hartejsingh12 hartejsingh12 requested a review from a team as a code owner November 22, 2023 18:00
@@ -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):

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)

Copy link

sweep-ai bot commented Nov 22, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

@karkir0003
Copy link
Member

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

Copy link

sonarcloud bot commented Nov 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.7% 1.7% Duplication

@hartejsingh12
Copy link
Collaborator Author

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

Fixed!

@karkir0003
Copy link
Member

@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

@karkir0003 karkir0003 closed this Nov 22, 2023
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.

2 participants