/includes/api-libs/Google/Service/Prediction.php

  1. <?php 
  2. /** 
  3. * Copyright 2010 Google Inc. 
  4. * 
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
  6. * use this file except in compliance with the License. You may obtain a copy of 
  7. * the License at 
  8. * 
  9. * http://www.apache.org/licenses/LICENSE-2.0 
  10. * 
  11. * Unless required by applicable law or agreed to in writing, software 
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
  14. * License for the specific language governing permissions and limitations under 
  15. * the License. 
  16. */ 
  17.  
  18. /** 
  19. * Service definition for Prediction (v1.6). 
  20. * 
  21. * <p> 
  22. * Lets you access a cloud hosted machine learning service that makes it easy to 
  23. * build smart apps</p> 
  24. * 
  25. * <p> 
  26. * For more information about this service, see the API 
  27. * <a href="https://developers.google.com/prediction/docs/developer-guide" target="_blank">Documentation</a> 
  28. * </p> 
  29. * 
  30. * @author Google, Inc. 
  31. */ 
  32. class Google_Service_Prediction extends Google_Service 
  33. /** Manage your data and permissions in Google Cloud Storage. */ 
  34. const DEVSTORAGE_FULL_CONTROL = 
  35. "https://www.googleapis.com/auth/devstorage.full_control"; 
  36. /** View your data in Google Cloud Storage. */ 
  37. const DEVSTORAGE_READ_ONLY = 
  38. "https://www.googleapis.com/auth/devstorage.read_only"; 
  39. /** Manage your data in Google Cloud Storage. */ 
  40. const DEVSTORAGE_READ_WRITE = 
  41. "https://www.googleapis.com/auth/devstorage.read_write"; 
  42. /** Manage your data in the Google Prediction API. */ 
  43. const PREDICTION = 
  44. "https://www.googleapis.com/auth/prediction"; 
  45.  
  46. public $hostedmodels; 
  47. public $trainedmodels; 
  48.  
  49.  
  50. /** 
  51. * Constructs the internal representation of the Prediction service. 
  52. * 
  53. * @param Google_Client $client 
  54. */ 
  55. public function __construct(Google_Client $client) 
  56. parent::__construct($client); 
  57. $this->servicePath = 'prediction/v1.6/projects/'; 
  58. $this->version = 'v1.6'; 
  59. $this->serviceName = 'prediction'; 
  60.  
  61. $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource( 
  62. $this,  
  63. $this->serviceName,  
  64. 'hostedmodels',  
  65. array( 
  66. 'methods' => array( 
  67. 'predict' => array( 
  68. 'path' => '{project}/hostedmodels/{hostedModelName}/predict',  
  69. 'httpMethod' => 'POST',  
  70. 'parameters' => array( 
  71. 'project' => array( 
  72. 'location' => 'path',  
  73. 'type' => 'string',  
  74. 'required' => true,  
  75. ),  
  76. 'hostedModelName' => array( 
  77. 'location' => 'path',  
  78. 'type' => 'string',  
  79. 'required' => true,  
  80. ),  
  81. ),  
  82. ),  
  83. ); 
  84. $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource( 
  85. $this,  
  86. $this->serviceName,  
  87. 'trainedmodels',  
  88. array( 
  89. 'methods' => array( 
  90. 'analyze' => array( 
  91. 'path' => '{project}/trainedmodels/{id}/analyze',  
  92. 'httpMethod' => 'GET',  
  93. 'parameters' => array( 
  94. 'project' => array( 
  95. 'location' => 'path',  
  96. 'type' => 'string',  
  97. 'required' => true,  
  98. ),  
  99. 'id' => array( 
  100. 'location' => 'path',  
  101. 'type' => 'string',  
  102. 'required' => true,  
  103. ),  
  104. ),  
  105. ), 'delete' => array( 
  106. 'path' => '{project}/trainedmodels/{id}',  
  107. 'httpMethod' => 'DELETE',  
  108. 'parameters' => array( 
  109. 'project' => array( 
  110. 'location' => 'path',  
  111. 'type' => 'string',  
  112. 'required' => true,  
  113. ),  
  114. 'id' => array( 
  115. 'location' => 'path',  
  116. 'type' => 'string',  
  117. 'required' => true,  
  118. ),  
  119. ),  
  120. ), 'get' => array( 
  121. 'path' => '{project}/trainedmodels/{id}',  
  122. 'httpMethod' => 'GET',  
  123. 'parameters' => array( 
  124. 'project' => array( 
  125. 'location' => 'path',  
  126. 'type' => 'string',  
  127. 'required' => true,  
  128. ),  
  129. 'id' => array( 
  130. 'location' => 'path',  
  131. 'type' => 'string',  
  132. 'required' => true,  
  133. ),  
  134. ),  
  135. ), 'insert' => array( 
  136. 'path' => '{project}/trainedmodels',  
  137. 'httpMethod' => 'POST',  
  138. 'parameters' => array( 
  139. 'project' => array( 
  140. 'location' => 'path',  
  141. 'type' => 'string',  
  142. 'required' => true,  
  143. ),  
  144. ),  
  145. ), 'list' => array( 
  146. 'path' => '{project}/trainedmodels/list',  
  147. 'httpMethod' => 'GET',  
  148. 'parameters' => array( 
  149. 'project' => array( 
  150. 'location' => 'path',  
  151. 'type' => 'string',  
  152. 'required' => true,  
  153. ),  
  154. 'pageToken' => array( 
  155. 'location' => 'query',  
  156. 'type' => 'string',  
  157. ),  
  158. 'maxResults' => array( 
  159. 'location' => 'query',  
  160. 'type' => 'integer',  
  161. ),  
  162. ),  
  163. ), 'predict' => array( 
  164. 'path' => '{project}/trainedmodels/{id}/predict',  
  165. 'httpMethod' => 'POST',  
  166. 'parameters' => array( 
  167. 'project' => array( 
  168. 'location' => 'path',  
  169. 'type' => 'string',  
  170. 'required' => true,  
  171. ),  
  172. 'id' => array( 
  173. 'location' => 'path',  
  174. 'type' => 'string',  
  175. 'required' => true,  
  176. ),  
  177. ),  
  178. ), 'update' => array( 
  179. 'path' => '{project}/trainedmodels/{id}',  
  180. 'httpMethod' => 'PUT',  
  181. 'parameters' => array( 
  182. 'project' => array( 
  183. 'location' => 'path',  
  184. 'type' => 'string',  
  185. 'required' => true,  
  186. ),  
  187. 'id' => array( 
  188. 'location' => 'path',  
  189. 'type' => 'string',  
  190. 'required' => true,  
  191. ),  
  192. ),  
  193. ),  
  194. ); 
  195.  
  196.  
  197. /** 
  198. * The "hostedmodels" collection of methods. 
  199. * Typical usage is: 
  200. * <code> 
  201. * $predictionService = new Google_Service_Prediction(...); 
  202. * $hostedmodels = $predictionService->hostedmodels; 
  203. * </code> 
  204. */ 
  205. class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource 
  206.  
  207. /** 
  208. * Submit input and request an output against a hosted model. 
  209. * (hostedmodels.predict) 
  210. * 
  211. * @param string $project The project associated with the model. 
  212. * @param string $hostedModelName The name of a hosted model. 
  213. * @param Google_Input $postBody 
  214. * @param array $optParams Optional parameters. 
  215. * @return Google_Service_Prediction_Output 
  216. */ 
  217. public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array()) 
  218. $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody); 
  219. $params = array_merge($params, $optParams); 
  220. return $this->call('predict', array($params), "Google_Service_Prediction_Output"); 
  221.  
  222. /** 
  223. * The "trainedmodels" collection of methods. 
  224. * Typical usage is: 
  225. * <code> 
  226. * $predictionService = new Google_Service_Prediction(...); 
  227. * $trainedmodels = $predictionService->trainedmodels; 
  228. * </code> 
  229. */ 
  230. class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Resource 
  231.  
  232. /** 
  233. * Get analysis of the model and the data the model was trained on. 
  234. * (trainedmodels.analyze) 
  235. * 
  236. * @param string $project The project associated with the model. 
  237. * @param string $id The unique name for the predictive model. 
  238. * @param array $optParams Optional parameters. 
  239. * @return Google_Service_Prediction_Analyze 
  240. */ 
  241. public function analyze($project, $id, $optParams = array()) 
  242. $params = array('project' => $project, 'id' => $id); 
  243. $params = array_merge($params, $optParams); 
  244. return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze"); 
  245.  
  246. /** 
  247. * Delete a trained model. (trainedmodels.delete) 
  248. * 
  249. * @param string $project The project associated with the model. 
  250. * @param string $id The unique name for the predictive model. 
  251. * @param array $optParams Optional parameters. 
  252. */ 
  253. public function delete($project, $id, $optParams = array()) 
  254. $params = array('project' => $project, 'id' => $id); 
  255. $params = array_merge($params, $optParams); 
  256. return $this->call('delete', array($params)); 
  257.  
  258. /** 
  259. * Check training status of your model. (trainedmodels.get) 
  260. * 
  261. * @param string $project The project associated with the model. 
  262. * @param string $id The unique name for the predictive model. 
  263. * @param array $optParams Optional parameters. 
  264. * @return Google_Service_Prediction_Insert2 
  265. */ 
  266. public function get($project, $id, $optParams = array()) 
  267. $params = array('project' => $project, 'id' => $id); 
  268. $params = array_merge($params, $optParams); 
  269. return $this->call('get', array($params), "Google_Service_Prediction_Insert2"); 
  270.  
  271. /** 
  272. * Train a Prediction API model. (trainedmodels.insert) 
  273. * 
  274. * @param string $project The project associated with the model. 
  275. * @param Google_Insert $postBody 
  276. * @param array $optParams Optional parameters. 
  277. * @return Google_Service_Prediction_Insert2 
  278. */ 
  279. public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array()) 
  280. $params = array('project' => $project, 'postBody' => $postBody); 
  281. $params = array_merge($params, $optParams); 
  282. return $this->call('insert', array($params), "Google_Service_Prediction_Insert2"); 
  283.  
  284. /** 
  285. * List available models. (trainedmodels.listTrainedmodels) 
  286. * 
  287. * @param string $project The project associated with the model. 
  288. * @param array $optParams Optional parameters. 
  289. * 
  290. * @opt_param string pageToken Pagination token. 
  291. * @opt_param string maxResults Maximum number of results to return. 
  292. * @return Google_Service_Prediction_PredictionList 
  293. */ 
  294. public function listTrainedmodels($project, $optParams = array()) 
  295. $params = array('project' => $project); 
  296. $params = array_merge($params, $optParams); 
  297. return $this->call('list', array($params), "Google_Service_Prediction_PredictionList"); 
  298.  
  299. /** 
  300. * Submit model id and request a prediction. (trainedmodels.predict) 
  301. * 
  302. * @param string $project The project associated with the model. 
  303. * @param string $id The unique name for the predictive model. 
  304. * @param Google_Input $postBody 
  305. * @param array $optParams Optional parameters. 
  306. * @return Google_Service_Prediction_Output 
  307. */ 
  308. public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array()) 
  309. $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); 
  310. $params = array_merge($params, $optParams); 
  311. return $this->call('predict', array($params), "Google_Service_Prediction_Output"); 
  312.  
  313. /** 
  314. * Add new data to a trained model. (trainedmodels.update) 
  315. * 
  316. * @param string $project The project associated with the model. 
  317. * @param string $id The unique name for the predictive model. 
  318. * @param Google_Update $postBody 
  319. * @param array $optParams Optional parameters. 
  320. * @return Google_Service_Prediction_Insert2 
  321. */ 
  322. public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array()) 
  323. $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); 
  324. $params = array_merge($params, $optParams); 
  325. return $this->call('update', array($params), "Google_Service_Prediction_Insert2"); 
  326.  
  327.  
  328.  
  329.  
  330. class Google_Service_Prediction_Analyze extends Google_Collection 
  331. protected $collection_key = 'errors'; 
  332. protected $internal_gapi_mappings = array( 
  333. ); 
  334. protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription'; 
  335. protected $dataDescriptionDataType = ''; 
  336. public $errors; 
  337. public $id; 
  338. public $kind; 
  339. protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription'; 
  340. protected $modelDescriptionDataType = ''; 
  341. public $selfLink; 
  342.  
  343.  
  344. public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription) 
  345. $this->dataDescription = $dataDescription; 
  346. public function getDataDescription() 
  347. return $this->dataDescription; 
  348. public function setErrors($errors) 
  349. $this->errors = $errors; 
  350. public function getErrors() 
  351. return $this->errors; 
  352. public function setId($id) 
  353. $this->id = $id; 
  354. public function getId() 
  355. return $this->id; 
  356. public function setKind($kind) 
  357. $this->kind = $kind; 
  358. public function getKind() 
  359. return $this->kind; 
  360. public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription) 
  361. $this->modelDescription = $modelDescription; 
  362. public function getModelDescription() 
  363. return $this->modelDescription; 
  364. public function setSelfLink($selfLink) 
  365. $this->selfLink = $selfLink; 
  366. public function getSelfLink() 
  367. return $this->selfLink; 
  368.  
  369. class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection 
  370. protected $collection_key = 'features'; 
  371. protected $internal_gapi_mappings = array( 
  372. ); 
  373. protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures'; 
  374. protected $featuresDataType = 'array'; 
  375. protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; 
  376. protected $outputFeatureDataType = ''; 
  377.  
  378.  
  379. public function setFeatures($features) 
  380. $this->features = $features; 
  381. public function getFeatures() 
  382. return $this->features; 
  383. public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature) 
  384. $this->outputFeature = $outputFeature; 
  385. public function getOutputFeature() 
  386. return $this->outputFeature; 
  387.  
  388. class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model 
  389. protected $internal_gapi_mappings = array( 
  390. ); 
  391. protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical'; 
  392. protected $categoricalDataType = ''; 
  393. public $index; 
  394. protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric'; 
  395. protected $numericDataType = ''; 
  396. protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText'; 
  397. protected $textDataType = ''; 
  398.  
  399.  
  400. public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical) 
  401. $this->categorical = $categorical; 
  402. public function getCategorical() 
  403. return $this->categorical; 
  404. public function setIndex($index) 
  405. $this->index = $index; 
  406. public function getIndex() 
  407. return $this->index; 
  408. public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric) 
  409. $this->numeric = $numeric; 
  410. public function getNumeric() 
  411. return $this->numeric; 
  412. public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text) 
  413. $this->text = $text; 
  414. public function getText() 
  415. return $this->text; 
  416.  
  417. class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection 
  418. protected $collection_key = 'values'; 
  419. protected $internal_gapi_mappings = array( 
  420. ); 
  421. public $count; 
  422. protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; 
  423. protected $valuesDataType = 'array'; 
  424.  
  425.  
  426. public function setCount($count) 
  427. $this->count = $count; 
  428. public function getCount() 
  429. return $this->count; 
  430. public function setValues($values) 
  431. $this->values = $values; 
  432. public function getValues() 
  433. return $this->values; 
  434.  
  435. class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model 
  436. protected $internal_gapi_mappings = array( 
  437. ); 
  438. public $count; 
  439. public $value; 
  440.  
  441.  
  442. public function setCount($count) 
  443. $this->count = $count; 
  444. public function getCount() 
  445. return $this->count; 
  446. public function setValue($value) 
  447. $this->value = $value; 
  448. public function getValue() 
  449. return $this->value; 
  450.  
  451. class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model 
  452. protected $internal_gapi_mappings = array( 
  453. ); 
  454. public $count; 
  455. public $mean; 
  456. public $variance; 
  457.  
  458.  
  459. public function setCount($count) 
  460. $this->count = $count; 
  461. public function getCount() 
  462. return $this->count; 
  463. public function setMean($mean) 
  464. $this->mean = $mean; 
  465. public function getMean() 
  466. return $this->mean; 
  467. public function setVariance($variance) 
  468. $this->variance = $variance; 
  469. public function getVariance() 
  470. return $this->variance; 
  471.  
  472. class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model 
  473. protected $internal_gapi_mappings = array( 
  474. ); 
  475. public $count; 
  476.  
  477.  
  478. public function setCount($count) 
  479. $this->count = $count; 
  480. public function getCount() 
  481. return $this->count; 
  482.  
  483. class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection 
  484. protected $collection_key = 'text'; 
  485. protected $internal_gapi_mappings = array( 
  486. ); 
  487. protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric'; 
  488. protected $numericDataType = ''; 
  489. protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; 
  490. protected $textDataType = 'array'; 
  491.  
  492.  
  493. public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric) 
  494. $this->numeric = $numeric; 
  495. public function getNumeric() 
  496. return $this->numeric; 
  497. public function setText($text) 
  498. $this->text = $text; 
  499. public function getText() 
  500. return $this->text; 
  501.  
  502. class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model 
  503. protected $internal_gapi_mappings = array( 
  504. ); 
  505. public $count; 
  506. public $mean; 
  507. public $variance; 
  508.  
  509.  
  510. public function setCount($count) 
  511. $this->count = $count; 
  512. public function getCount() 
  513. return $this->count; 
  514. public function setMean($mean) 
  515. $this->mean = $mean; 
  516. public function getMean() 
  517. return $this->mean; 
  518. public function setVariance($variance) 
  519. $this->variance = $variance; 
  520. public function getVariance() 
  521. return $this->variance; 
  522.  
  523. class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model 
  524. protected $internal_gapi_mappings = array( 
  525. ); 
  526. public $count; 
  527. public $value; 
  528.  
  529.  
  530. public function setCount($count) 
  531. $this->count = $count; 
  532. public function getCount() 
  533. return $this->count; 
  534. public function setValue($value) 
  535. $this->value = $value; 
  536. public function getValue() 
  537. return $this->value; 
  538.  
  539. class Google_Service_Prediction_AnalyzeErrors extends Google_Model 
  540.  
  541. class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model 
  542. protected $internal_gapi_mappings = array( 
  543. ); 
  544. public $confusionMatrix; 
  545. public $confusionMatrixRowTotals; 
  546. protected $modelinfoType = 'Google_Service_Prediction_Insert2'; 
  547. protected $modelinfoDataType = ''; 
  548.  
  549.  
  550. public function setConfusionMatrix($confusionMatrix) 
  551. $this->confusionMatrix = $confusionMatrix; 
  552. public function getConfusionMatrix() 
  553. return $this->confusionMatrix; 
  554. public function setConfusionMatrixRowTotals($confusionMatrixRowTotals) 
  555. $this->confusionMatrixRowTotals = $confusionMatrixRowTotals; 
  556. public function getConfusionMatrixRowTotals() 
  557. return $this->confusionMatrixRowTotals; 
  558. public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo) 
  559. $this->modelinfo = $modelinfo; 
  560. public function getModelinfo() 
  561. return $this->modelinfo; 
  562.  
  563. class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model 
  564.  
  565. class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model 
  566.  
  567. class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model 
  568.  
  569. class Google_Service_Prediction_Input extends Google_Model 
  570. protected $internal_gapi_mappings = array( 
  571. ); 
  572. protected $inputType = 'Google_Service_Prediction_InputInput'; 
  573. protected $inputDataType = ''; 
  574.  
  575.  
  576. public function setInput(Google_Service_Prediction_InputInput $input) 
  577. $this->input = $input; 
  578. public function getInput() 
  579. return $this->input; 
  580.  
  581. class Google_Service_Prediction_InputInput extends Google_Collection 
  582. protected $collection_key = 'csvInstance'; 
  583. protected $internal_gapi_mappings = array( 
  584. ); 
  585. public $csvInstance; 
  586.  
  587.  
  588. public function setCsvInstance($csvInstance) 
  589. $this->csvInstance = $csvInstance; 
  590. public function getCsvInstance() 
  591. return $this->csvInstance; 
  592.  
  593. class Google_Service_Prediction_Insert extends Google_Collection 
  594. protected $collection_key = 'utility'; 
  595. protected $internal_gapi_mappings = array( 
  596. ); 
  597. public $id; 
  598. public $modelType; 
  599. public $sourceModel; 
  600. public $storageDataLocation; 
  601. public $storagePMMLLocation; 
  602. public $storagePMMLModelLocation; 
  603. protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances'; 
  604. protected $trainingInstancesDataType = 'array'; 
  605. public $utility; 
  606.  
  607.  
  608. public function setId($id) 
  609. $this->id = $id; 
  610. public function getId() 
  611. return $this->id; 
  612. public function setModelType($modelType) 
  613. $this->modelType = $modelType; 
  614. public function getModelType() 
  615. return $this->modelType; 
  616. public function setSourceModel($sourceModel) 
  617. $this->sourceModel = $sourceModel; 
  618. public function getSourceModel() 
  619. return $this->sourceModel; 
  620. public function setStorageDataLocation($storageDataLocation) 
  621. $this->storageDataLocation = $storageDataLocation; 
  622. public function getStorageDataLocation() 
  623. return $this->storageDataLocation; 
  624. public function setStoragePMMLLocation($storagePMMLLocation) 
  625. $this->storagePMMLLocation = $storagePMMLLocation; 
  626. public function getStoragePMMLLocation() 
  627. return $this->storagePMMLLocation; 
  628. public function setStoragePMMLModelLocation($storagePMMLModelLocation) 
  629. $this->storagePMMLModelLocation = $storagePMMLModelLocation; 
  630. public function getStoragePMMLModelLocation() 
  631. return $this->storagePMMLModelLocation; 
  632. public function setTrainingInstances($trainingInstances) 
  633. $this->trainingInstances = $trainingInstances; 
  634. public function getTrainingInstances() 
  635. return $this->trainingInstances; 
  636. public function setUtility($utility) 
  637. $this->utility = $utility; 
  638. public function getUtility() 
  639. return $this->utility; 
  640.  
  641. class Google_Service_Prediction_Insert2 extends Google_Model 
  642. protected $internal_gapi_mappings = array( 
  643. ); 
  644. public $created; 
  645. public $id; 
  646. public $kind; 
  647. protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo'; 
  648. protected $modelInfoDataType = ''; 
  649. public $modelType; 
  650. public $selfLink; 
  651. public $storageDataLocation; 
  652. public $storagePMMLLocation; 
  653. public $storagePMMLModelLocation; 
  654. public $trainingComplete; 
  655. public $trainingStatus; 
  656.  
  657.  
  658. public function setCreated($created) 
  659. $this->created = $created; 
  660. public function getCreated() 
  661. return $this->created; 
  662. public function setId($id) 
  663. $this->id = $id; 
  664. public function getId() 
  665. return $this->id; 
  666. public function setKind($kind) 
  667. $this->kind = $kind; 
  668. public function getKind() 
  669. return $this->kind; 
  670. public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo) 
  671. $this->modelInfo = $modelInfo; 
  672. public function getModelInfo() 
  673. return $this->modelInfo; 
  674. public function setModelType($modelType) 
  675. $this->modelType = $modelType; 
  676. public function getModelType() 
  677. return $this->modelType; 
  678. public function setSelfLink($selfLink) 
  679. $this->selfLink = $selfLink; 
  680. public function getSelfLink() 
  681. return $this->selfLink; 
  682. public function setStorageDataLocation($storageDataLocation) 
  683. $this->storageDataLocation = $storageDataLocation; 
  684. public function getStorageDataLocation() 
  685. return $this->storageDataLocation; 
  686. public function setStoragePMMLLocation($storagePMMLLocation) 
  687. $this->storagePMMLLocation = $storagePMMLLocation; 
  688. public function getStoragePMMLLocation() 
  689. return $this->storagePMMLLocation; 
  690. public function setStoragePMMLModelLocation($storagePMMLModelLocation) 
  691. $this->storagePMMLModelLocation = $storagePMMLModelLocation; 
  692. public function getStoragePMMLModelLocation() 
  693. return $this->storagePMMLModelLocation; 
  694. public function setTrainingComplete($trainingComplete) 
  695. $this->trainingComplete = $trainingComplete; 
  696. public function getTrainingComplete() 
  697. return $this->trainingComplete; 
  698. public function setTrainingStatus($trainingStatus) 
  699. $this->trainingStatus = $trainingStatus; 
  700. public function getTrainingStatus() 
  701. return $this->trainingStatus; 
  702.  
  703. class Google_Service_Prediction_Insert2ModelInfo extends Google_Model 
  704. protected $internal_gapi_mappings = array( 
  705. ); 
  706. public $classWeightedAccuracy; 
  707. public $classificationAccuracy; 
  708. public $meanSquaredError; 
  709. public $modelType; 
  710. public $numberInstances; 
  711. public $numberLabels; 
  712.  
  713.  
  714. public function setClassWeightedAccuracy($classWeightedAccuracy) 
  715. $this->classWeightedAccuracy = $classWeightedAccuracy; 
  716. public function getClassWeightedAccuracy() 
  717. return $this->classWeightedAccuracy; 
  718. public function setClassificationAccuracy($classificationAccuracy) 
  719. $this->classificationAccuracy = $classificationAccuracy; 
  720. public function getClassificationAccuracy() 
  721. return $this->classificationAccuracy; 
  722. public function setMeanSquaredError($meanSquaredError) 
  723. $this->meanSquaredError = $meanSquaredError; 
  724. public function getMeanSquaredError() 
  725. return $this->meanSquaredError; 
  726. public function setModelType($modelType) 
  727. $this->modelType = $modelType; 
  728. public function getModelType() 
  729. return $this->modelType; 
  730. public function setNumberInstances($numberInstances) 
  731. $this->numberInstances = $numberInstances; 
  732. public function getNumberInstances() 
  733. return $this->numberInstances; 
  734. public function setNumberLabels($numberLabels) 
  735. $this->numberLabels = $numberLabels; 
  736. public function getNumberLabels() 
  737. return $this->numberLabels; 
  738.  
  739. class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection 
  740. protected $collection_key = 'csvInstance'; 
  741. protected $internal_gapi_mappings = array( 
  742. ); 
  743. public $csvInstance; 
  744. public $output; 
  745.  
  746.  
  747. public function setCsvInstance($csvInstance) 
  748. $this->csvInstance = $csvInstance; 
  749. public function getCsvInstance() 
  750. return $this->csvInstance; 
  751. public function setOutput($output) 
  752. $this->output = $output; 
  753. public function getOutput() 
  754. return $this->output; 
  755.  
  756. class Google_Service_Prediction_InsertUtility extends Google_Model 
  757.  
  758. class Google_Service_Prediction_Output extends Google_Collection 
  759. protected $collection_key = 'outputMulti'; 
  760. protected $internal_gapi_mappings = array( 
  761. ); 
  762. public $id; 
  763. public $kind; 
  764. public $outputLabel; 
  765. protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti'; 
  766. protected $outputMultiDataType = 'array'; 
  767. public $outputValue; 
  768. public $selfLink; 
  769.  
  770.  
  771. public function setId($id) 
  772. $this->id = $id; 
  773. public function getId() 
  774. return $this->id; 
  775. public function setKind($kind) 
  776. $this->kind = $kind; 
  777. public function getKind() 
  778. return $this->kind; 
  779. public function setOutputLabel($outputLabel) 
  780. $this->outputLabel = $outputLabel; 
  781. public function getOutputLabel() 
  782. return $this->outputLabel; 
  783. public function setOutputMulti($outputMulti) 
  784. $this->outputMulti = $outputMulti; 
  785. public function getOutputMulti() 
  786. return $this->outputMulti; 
  787. public function setOutputValue($outputValue) 
  788. $this->outputValue = $outputValue; 
  789. public function getOutputValue() 
  790. return $this->outputValue; 
  791. public function setSelfLink($selfLink) 
  792. $this->selfLink = $selfLink; 
  793. public function getSelfLink() 
  794. return $this->selfLink; 
  795.  
  796. class Google_Service_Prediction_OutputOutputMulti extends Google_Model 
  797. protected $internal_gapi_mappings = array( 
  798. ); 
  799. public $label; 
  800. public $score; 
  801.  
  802.  
  803. public function setLabel($label) 
  804. $this->label = $label; 
  805. public function getLabel() 
  806. return $this->label; 
  807. public function setScore($score) 
  808. $this->score = $score; 
  809. public function getScore() 
  810. return $this->score; 
  811.  
  812. class Google_Service_Prediction_PredictionList extends Google_Collection 
  813. protected $collection_key = 'items'; 
  814. protected $internal_gapi_mappings = array( 
  815. ); 
  816. protected $itemsType = 'Google_Service_Prediction_Insert2'; 
  817. protected $itemsDataType = 'array'; 
  818. public $kind; 
  819. public $nextPageToken; 
  820. public $selfLink; 
  821.  
  822.  
  823. public function setItems($items) 
  824. $this->items = $items; 
  825. public function getItems() 
  826. return $this->items; 
  827. public function setKind($kind) 
  828. $this->kind = $kind; 
  829. public function getKind() 
  830. return $this->kind; 
  831. public function setNextPageToken($nextPageToken) 
  832. $this->nextPageToken = $nextPageToken; 
  833. public function getNextPageToken() 
  834. return $this->nextPageToken; 
  835. public function setSelfLink($selfLink) 
  836. $this->selfLink = $selfLink; 
  837. public function getSelfLink() 
  838. return $this->selfLink; 
  839.  
  840. class Google_Service_Prediction_Update extends Google_Collection 
  841. protected $collection_key = 'csvInstance'; 
  842. protected $internal_gapi_mappings = array( 
  843. ); 
  844. public $csvInstance; 
  845. public $output; 
  846.  
  847.  
  848. public function setCsvInstance($csvInstance) 
  849. $this->csvInstance = $csvInstance; 
  850. public function getCsvInstance() 
  851. return $this->csvInstance; 
  852. public function setOutput($output) 
  853. $this->output = $output; 
  854. public function getOutput() 
  855. return $this->output; 
.