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

GSK-146: update demo projects with new giskard client #89

Merged
merged 20 commits into from
Jun 24, 2022

Conversation

qgk75
Copy link
Contributor

@qgk75 qgk75 commented Jun 14, 2022

No description provided.

@andreybavt andreybavt self-requested a review June 20, 2022 08:37
giskard-ml-worker/ml_worker/server/ml_worker_service.py Outdated Show resolved Hide resolved
@@ -20,6 +20,9 @@ scikit-learn = ">=1.0.2"
shap = ">=0.40.0"
zstandard = "^0.15.2"
numpy = "^1.21.6"
#torch = ">=1.10.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to have them commented?

try {
saveProject(key, config.creator);
} catch (IOException e) {
logger.error(e.getMessage());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two logging calls looks redundant, the second one will include e.getMessage() too

Copy link
Collaborator

@andreybavt andreybavt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the PR looks good to me now. I tested the demo models and datasets, it works fine.
My two last comments are:

  • model names (see uploadModel)
  • German_credit_scoring_giskard.ipynb is still using ModelInspector, can you adapt it to the new API? It's the notebook that we ship with our demo jupyter container.

Resource modelResource = resourceLoader.getResource(pathToModel);
Resource requirementsResource = resourceLoader.getResource(pathToRequirements);
ModelUploadParamsDTO modelDTO = projects.get(projectKey).modelParams;
modelDTO.setName(modelDTO.getName() + " " + filename);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're modifying the shared ModelUploadParamsDTO. This results in model names like "German credit score 0 1" because on the first iteration "0" was already appended to the name. We should create a copy of projects.get(projectKey).modelParams here before modifying it.

@qgk75 qgk75 requested a review from andreybavt June 21, 2022 13:36
@sonarcloud
Copy link

sonarcloud bot commented Jun 24, 2022

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 4 Code Smells

50.7% 50.7% Coverage
0.0% 0.0% Duplication

@andreybavt andreybavt merged commit 5c92f64 into main Jun 24, 2022
@Hartorn Hartorn deleted the bug/demo-projects branch September 13, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants