-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Vertex AI Image Classifier with Explainable Predictions (solution notebook) #168
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:07Z
|
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:08Z Consider grouping all the imports at the beginning as in a standard Python file, so that all the notebook dependencies are immediately clear.
New comment: Did you run pre-commit? The import ordering within groups does not seem to be sorted by alphabetical order. _sanjanalreddy commented on 2022-03-04T23:51:45Z_ ----------------------------------------------------------------+1 |
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:08Z Maybe shorten that cell into the following one-liner:
kylesteckler commented on 2022-03-08T20:45:09Z When I run this one-liner with BUCKET='kylesteckler-demo' I get an error:
InvalidUrlError: Invalid bucket name in URL "-demo".
BenoitDherin commented on 2022-03-09T18:46:20Z Have you tried quoting the bucket path as follows:
|
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:09Z
|
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:10Z * "shuffle, split and copy" -> "shuffle, split, and copy" |
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:10Z
|
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:11Z
|
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:12Z Suggestion: What about using takumiohym commented on 2022-03-07T03:10:34Z +1 |
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:13Z
sanjanalreddy commented on 2022-03-04T23:55:32Z Just a brief comment on what the architecture of the model is would be helpful in the markdown above. Since we aren't focusing on model building here, it might be useful to mention what kind of model we are using. takumiohym commented on 2022-03-07T03:12:20Z In terms of the model, how about just doing transfer learning? That can shorten the training time, and get better result (and better explainability). BenoitDherin commented on 2022-03-09T18:50:17Z New comment: Did you run pre-commit? The code still doesn't look fully pep8 compliant (e.g., only one line between functions, lines looking too long) |
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:13Z Is is possible to escape the quote as follows so that the yaml files is more readable: echo > ./config.yaml "\ workerPoolSpecs: machineSpec: machineType: n1-standard-8 replicaCount: 1 pythonPackageSpec: |
View / edit / reply to this conversation on ReviewNB BenoitDherin commented on 2022-03-04T23:09:14Z Maybe adding something about what is going on in the following code could be useful since it is not obvious to understand:
m_call = tf.function(local_model.call).get_concrete_function( [ tf.TensorSpec( shape=[None, 192, 192, 3], dtype=tf.float32, name=CONCRETE_INPUT ) ] )
and also why the sanjanalreddy commented on 2022-03-04T23:59:21Z Agree. It's not clear what the purpose is. |
+1 View entire conversation on ReviewNB |
Just a brief comment on what the architecture of the model is would be helpful in the markdown above. Since we aren't focusing on model building here, it might be useful to mention what kind of model we are using. View entire conversation on ReviewNB |
Agree. It's not clear what the purpose is. View entire conversation on ReviewNB |
View / edit / reply to this conversation on ReviewNB sanjanalreddy commented on 2022-03-05T00:04:17Z Add a note that restart of the kernel is needed |
View / edit / reply to this conversation on ReviewNB sanjanalreddy commented on 2022-03-05T00:04:18Z Would be better to set the PROJECT ID using this to have consistency across notebooks in the repo
|
View / edit / reply to this conversation on ReviewNB sanjanalreddy commented on 2022-03-05T00:04:19Z Add a line on why we have to denormalize the image here |
View / edit / reply to this conversation on ReviewNB sanjanalreddy commented on 2022-03-05T00:04:19Z Add a note above this cell that we are using endpoint.explian() here to get the explanations and what steps should be followed when we need to get explanations. |
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.
Thanks for updating this. Just added minor suggestions to improve the instructions!
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.
Added a few minor comments. Thanks for updating the lab.
+1 View entire conversation on ReviewNB |
In terms of the model, how about just doing transfer learning? That can shorten the training time, and get better result (and better explainability). View entire conversation on ReviewNB |
When I run this one-liner with BUCKET='kylesteckler-demo' I get an error:
InvalidUrlError: Invalid bucket name in URL "-demo".
View entire conversation on ReviewNB |
Have you tried quoting the bucket path as follows:
View entire conversation on ReviewNB |
New comment: Did you run pre-commit? The code still doesn't look fully pep8 compliant (e.g., only one line between functions, lines looking too long) View entire conversation on ReviewNB |
LGTM. nit: It seems at time the code is not fully pep8 compliant. |
View / edit / reply to this conversation on ReviewNB sanjanalreddy commented on 2022-03-09T19:02:27Z Looks like the confidence fell drastically using the tfhub model but nothing to worry about |
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.
LGTM
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.
LGTM! Thanks for updating this.
Solution Notebook for XAI Image Lab with Vertex. #165