Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Delete a trained model<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | data: string, mybucket/mydata resource in Google Storage (required)</tt></dd></dl> |
| 21 | |
| 22 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Check training status of your model<br> |
| 23 | <br> |
| 24 | Args:<br> |
| 25 | data: string, mybucket/mydata resource in Google Storage (required)</tt></dd></dl> |
| 26 | |
| 27 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Begin training your model<br> |
| 28 | <br> |
| 29 | Args:<br> |
| 30 | body: object, The request body. (required)</tt></dd></dl> |
| 31 | |
| 32 | <dl><dt><a name="Resource-predict"><strong>predict</strong></a> = method(self, **kwargs)</dt><dd><tt>Submit data and request a prediction<br> |
| 33 | <br> |
| 34 | Args:<br> |
| 35 | body: object, The request body. (required)<br> |
| 36 | data: string, mybucket/mydata resource in Google Storage (required)</tt></dd></dl> |
| 37 | |
| 38 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Add new data to a trained model<br> |
| 39 | <br> |
| 40 | Args:<br> |
| 41 | body: object, The request body. (required)<br> |
| 42 | data: string, A parameter (required)</tt></dd></dl> |
| 43 | |
| 44 | <hr> |
| 45 | Data descriptors defined here:<br> |
| 46 | <dl><dt><strong>__dict__</strong></dt> |
| 47 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 48 | </dl> |
| 49 | <dl><dt><strong>__weakref__</strong></dt> |
| 50 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 51 | </dl> |
| 52 | </td></tr></table> |
| 53 | </body></html> |