GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: Added explain tabular samples by ivanmkc · Pull Request #348 · googleapis/python-aiplatform Conversation
Contributor
Waiting for merge of #337
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Here is the summary of changes. You are about to add 2 region tags.
This comment is generated by snippet-bot.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
dbdf1dd to
00102be
Compare
b09cece to
8fb4947
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Just one point about showcasing explanations returned on the explain() call + a few nits.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| for prediction_ in response.predictions: | ||
| print(prediction_) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why the underscore at the end of the var name? Also Endpoint.explain() returns a high-level Prediction object that contains predictions and explanations (see here). We should probably showcase both. @sasha-gitg thoughts?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I agree that we should demonstrate that both predictions and explanations can get accessed from this object.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sure, will add.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| for prediction_ in response.predictions: | ||
| print(prediction_) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I agree that we should demonstrate that both predictions and explanations can get accessed from this object.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
|
|
||
| # [START aiplatform_sdk_explain_tabular_sample] | ||
| def explain_tabular_sample( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This could be a generic explain sample and doesn't necessarily need to be qualified as tabular.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The sheet has me doing explain_tabular_sample, I assume it's used by the tech writers in such a sample.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| response = endpoint.explain(instances=[instance_dict], parameters={}) | ||
|
|
||
| for explanation in response.explanations: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Same as GAPIC sample for consistency.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Ivan
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.