blob: 4df60dc04e3c1129190ea5299fb4396f8128263d [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="prediction_v1_2.html">Prediction API</a> . <a href="prediction_v1_2.training.html">training</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#delete">delete(data)</a></code></p>
<p class="firstline">Delete a trained model</p>
<p class="toc_element">
<code><a href="#get">get(data)</a></code></p>
<p class="firstline">Check training status of your model</p>
<p class="toc_element">
<code><a href="#insert">insert(body, data=None)</a></code></p>
<p class="firstline">Begin training your model</p>
<p class="toc_element">
<code><a href="#update">update(data, body)</a></code></p>
<p class="firstline">Add new data to a trained model</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="delete">delete(data)</code>
<pre>Delete a trained model
Args:
data: string, mybucket/mydata resource in Google Storage (required)
</pre>
</div>
<div class="method">
<code class="details" id="get">get(data)</code>
<pre>Check training status of your model
Args:
data: string, mybucket/mydata resource in Google Storage (required)
Returns:
An object of the form:
{
"selfLink": "A String",
"kind": "prediction#training",
"trainingStatus": "A String",
"id": "A String",
"modelInfo": {
"classificationAccuracy": 3.14,
"meanSquaredError": 3.14,
"modelType": "A String",
},
}</pre>
</div>
<div class="method">
<code class="details" id="insert">insert(body, data=None)</code>
<pre>Begin training your model
Args:
body: object, The request body. (required)
The object takes the form of:
{
"selfLink": "A String",
"kind": "prediction#training",
"trainingStatus": "A String",
"id": "A String",
"modelInfo": {
"classificationAccuracy": 3.14,
"meanSquaredError": 3.14,
"modelType": "A String",
},
}
data: string, mybucket/mydata resource in Google Storage
Returns:
An object of the form:
{
"selfLink": "A String",
"kind": "prediction#training",
"trainingStatus": "A String",
"id": "A String",
"modelInfo": {
"classificationAccuracy": 3.14,
"meanSquaredError": 3.14,
"modelType": "A String",
},
}</pre>
</div>
<div class="method">
<code class="details" id="update">update(data, body)</code>
<pre>Add new data to a trained model
Args:
data: string, mybucket/mydata resource in Google Storage (required)
body: object, The request body. (required)
The object takes the form of:
{
"classLabel": "A String", # The true class label of this instance
"csvInstance": [ # The input features for this instance
"",
],
}
Returns:
An object of the form:
{
"selfLink": "A String",
"kind": "prediction#training",
"trainingStatus": "A String",
"id": "A String",
"modelInfo": {
"classificationAccuracy": 3.14,
"meanSquaredError": 3.14,
"modelType": "A String",
},
}</pre>
</div>
</body></html>