Repository navigation
introduce Prediction API - #989
Conversation
d15dcbd to
adf86db
Compare
|
Basic usage here LGTM. How about bulk-loading via the CSV trainedmodels.update method ? (https://cloud.google.com/prediction/docs/reference/v1.6/trainedmodels/update) I'll ask someone from the Prediction team to take a look. |
|
I could be misunderstanding the API, but I think the only place it accepts a CSV file is when you create the model and point it to a GCS file (which is supported here): prediction.createModel('new-model-name', {
data: gcs.file('input-data.csv')
}, function() {});For the update API, we have three ways of hitting that endpoint: model.setMetadata({
output: 'label',
csvInstance: ['data']
}, function() {});model.train('label', 'data', function() {});var writeStream = model.createWriteStream('label');
writeStream.write('data');
// ... any number of writes
writeStream.end();Added todos for better docs that show how to do these things |
602a619 to
a369d18
Compare
|
@callmehiphop feel free to pick this one apart now :) |
|
Still reading through a lot of the documentation, but are we not providing support for hostedmodels? |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
a369d18 to
7d08319
Compare
|
Changes made!
I intended to originally. But when I read more about them, I found there are only 3, and they have a pretty serious limit:
So, it sounded more like a "getting to know Prediction API" learning tool to me at this point. If and when it handles more queries, and the gallery grows larger, supporting this would be great. @jgeewax any thoughts on supported hostedmodels? |
|
@jgeewax should we wait for a review from someone from the Prediction team? ⌚ This PR will self-merge in 24 hours |
introduce Prediction API
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/74f0c42b-d8fe-4430-b878-ab099e9e7fe7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: googleapis/synthtool@e6f3d54 Source-Link: googleapis/synthtool@04573fd
…#989) * docs(samples): add clustering & table ACL samples draft * update createTableColumnACL * docs(samples): add samples and tests * fix incorrect file name * rename region tag * update samples * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * restore README * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix READMES Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Fixes #976
Hello, world for Prediction API.
To Dos
modelTypetotypewhen creating a model to distinguish between classification and regressionPreview