[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/google/Google/Service/ -> Prediction.php (source)

   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 build smart apps
  23   * </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  {
  34    /** Manage your data and permissions in Google Cloud Storage. */
  35    const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control";
  36    /** View your data in Google Cloud Storage. */
  37    const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only";
  38    /** Manage your data in Google Cloud Storage. */
  39    const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write";
  40    /** Manage your data in the Google Prediction API. */
  41    const PREDICTION = "https://www.googleapis.com/auth/prediction";
  42  
  43    public $hostedmodels;
  44    public $trainedmodels;
  45    
  46  
  47    /**
  48     * Constructs the internal representation of the Prediction service.
  49     *
  50     * @param Google_Client $client
  51     */
  52    public function __construct(Google_Client $client)
  53    {
  54      parent::__construct($client);
  55      $this->servicePath = 'prediction/v1.6/projects/';
  56      $this->version = 'v1.6';
  57      $this->serviceName = 'prediction';
  58  
  59      $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource(
  60          $this,
  61          $this->serviceName,
  62          'hostedmodels',
  63          array(
  64            'methods' => array(
  65              'predict' => array(
  66                'path' => '{project}/hostedmodels/{hostedModelName}/predict',
  67                'httpMethod' => 'POST',
  68                'parameters' => array(
  69                  'project' => array(
  70                    'location' => 'path',
  71                    'type' => 'string',
  72                    'required' => true,
  73                  ),
  74                  'hostedModelName' => array(
  75                    'location' => 'path',
  76                    'type' => 'string',
  77                    'required' => true,
  78                  ),
  79                ),
  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  }
 199  
 200  
 201  /**
 202   * The "hostedmodels" collection of methods.
 203   * Typical usage is:
 204   *  <code>
 205   *   $predictionService = new Google_Service_Prediction(...);
 206   *   $hostedmodels = $predictionService->hostedmodels;
 207   *  </code>
 208   */
 209  class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource
 210  {
 211  
 212    /**
 213     * Submit input and request an output against a hosted model.
 214     * (hostedmodels.predict)
 215     *
 216     * @param string $project
 217     * The project associated with the model.
 218     * @param string $hostedModelName
 219     * The name of a hosted model.
 220     * @param Google_Input $postBody
 221     * @param array $optParams Optional parameters.
 222     * @return Google_Service_Prediction_Output
 223     */
 224    public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array())
 225    {
 226      $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody);
 227      $params = array_merge($params, $optParams);
 228      return $this->call('predict', array($params), "Google_Service_Prediction_Output");
 229    }
 230  }
 231  
 232  /**
 233   * The "trainedmodels" collection of methods.
 234   * Typical usage is:
 235   *  <code>
 236   *   $predictionService = new Google_Service_Prediction(...);
 237   *   $trainedmodels = $predictionService->trainedmodels;
 238   *  </code>
 239   */
 240  class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Resource
 241  {
 242  
 243    /**
 244     * Get analysis of the model and the data the model was trained on.
 245     * (trainedmodels.analyze)
 246     *
 247     * @param string $project
 248     * The project associated with the model.
 249     * @param string $id
 250     * The unique name for the predictive model.
 251     * @param array $optParams Optional parameters.
 252     * @return Google_Service_Prediction_Analyze
 253     */
 254    public function analyze($project, $id, $optParams = array())
 255    {
 256      $params = array('project' => $project, 'id' => $id);
 257      $params = array_merge($params, $optParams);
 258      return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze");
 259    }
 260    /**
 261     * Delete a trained model. (trainedmodels.delete)
 262     *
 263     * @param string $project
 264     * The project associated with the model.
 265     * @param string $id
 266     * The unique name for the predictive model.
 267     * @param array $optParams Optional parameters.
 268     */
 269    public function delete($project, $id, $optParams = array())
 270    {
 271      $params = array('project' => $project, 'id' => $id);
 272      $params = array_merge($params, $optParams);
 273      return $this->call('delete', array($params));
 274    }
 275    /**
 276     * Check training status of your model. (trainedmodels.get)
 277     *
 278     * @param string $project
 279     * The project associated with the model.
 280     * @param string $id
 281     * The unique name for the predictive model.
 282     * @param array $optParams Optional parameters.
 283     * @return Google_Service_Prediction_Insert2
 284     */
 285    public function get($project, $id, $optParams = array())
 286    {
 287      $params = array('project' => $project, 'id' => $id);
 288      $params = array_merge($params, $optParams);
 289      return $this->call('get', array($params), "Google_Service_Prediction_Insert2");
 290    }
 291    /**
 292     * Train a Prediction API model. (trainedmodels.insert)
 293     *
 294     * @param string $project
 295     * The project associated with the model.
 296     * @param Google_Insert $postBody
 297     * @param array $optParams Optional parameters.
 298     * @return Google_Service_Prediction_Insert2
 299     */
 300    public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array())
 301    {
 302      $params = array('project' => $project, 'postBody' => $postBody);
 303      $params = array_merge($params, $optParams);
 304      return $this->call('insert', array($params), "Google_Service_Prediction_Insert2");
 305    }
 306    /**
 307     * List available models. (trainedmodels.listTrainedmodels)
 308     *
 309     * @param string $project
 310     * The project associated with the model.
 311     * @param array $optParams Optional parameters.
 312     *
 313     * @opt_param string pageToken
 314     * Pagination token.
 315     * @opt_param string maxResults
 316     * Maximum number of results to return.
 317     * @return Google_Service_Prediction_PredictionList
 318     */
 319    public function listTrainedmodels($project, $optParams = array())
 320    {
 321      $params = array('project' => $project);
 322      $params = array_merge($params, $optParams);
 323      return $this->call('list', array($params), "Google_Service_Prediction_PredictionList");
 324    }
 325    /**
 326     * Submit model id and request a prediction. (trainedmodels.predict)
 327     *
 328     * @param string $project
 329     * The project associated with the model.
 330     * @param string $id
 331     * The unique name for the predictive model.
 332     * @param Google_Input $postBody
 333     * @param array $optParams Optional parameters.
 334     * @return Google_Service_Prediction_Output
 335     */
 336    public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array())
 337    {
 338      $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
 339      $params = array_merge($params, $optParams);
 340      return $this->call('predict', array($params), "Google_Service_Prediction_Output");
 341    }
 342    /**
 343     * Add new data to a trained model. (trainedmodels.update)
 344     *
 345     * @param string $project
 346     * The project associated with the model.
 347     * @param string $id
 348     * The unique name for the predictive model.
 349     * @param Google_Update $postBody
 350     * @param array $optParams Optional parameters.
 351     * @return Google_Service_Prediction_Insert2
 352     */
 353    public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array())
 354    {
 355      $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
 356      $params = array_merge($params, $optParams);
 357      return $this->call('update', array($params), "Google_Service_Prediction_Insert2");
 358    }
 359  }
 360  
 361  
 362  
 363  
 364  class Google_Service_Prediction_Analyze extends Google_Collection
 365  {
 366    protected $collection_key = 'errors';
 367    protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription';
 368    protected $dataDescriptionDataType = '';
 369    public $errors;
 370    public $id;
 371    public $kind;
 372    protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription';
 373    protected $modelDescriptionDataType = '';
 374    public $selfLink;
 375  
 376    public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription)
 377    {
 378      $this->dataDescription = $dataDescription;
 379    }
 380  
 381    public function getDataDescription()
 382    {
 383      return $this->dataDescription;
 384    }
 385  
 386    public function setErrors($errors)
 387    {
 388      $this->errors = $errors;
 389    }
 390  
 391    public function getErrors()
 392    {
 393      return $this->errors;
 394    }
 395  
 396    public function setId($id)
 397    {
 398      $this->id = $id;
 399    }
 400  
 401    public function getId()
 402    {
 403      return $this->id;
 404    }
 405  
 406    public function setKind($kind)
 407    {
 408      $this->kind = $kind;
 409    }
 410  
 411    public function getKind()
 412    {
 413      return $this->kind;
 414    }
 415  
 416    public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription)
 417    {
 418      $this->modelDescription = $modelDescription;
 419    }
 420  
 421    public function getModelDescription()
 422    {
 423      return $this->modelDescription;
 424    }
 425  
 426    public function setSelfLink($selfLink)
 427    {
 428      $this->selfLink = $selfLink;
 429    }
 430  
 431    public function getSelfLink()
 432    {
 433      return $this->selfLink;
 434    }
 435  }
 436  
 437  class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection
 438  {
 439    protected $collection_key = 'features';
 440    protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures';
 441    protected $featuresDataType = 'array';
 442    protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature';
 443    protected $outputFeatureDataType = '';
 444  
 445    public function setFeatures($features)
 446    {
 447      $this->features = $features;
 448    }
 449  
 450    public function getFeatures()
 451    {
 452      return $this->features;
 453    }
 454  
 455    public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature)
 456    {
 457      $this->outputFeature = $outputFeature;
 458    }
 459  
 460    public function getOutputFeature()
 461    {
 462      return $this->outputFeature;
 463    }
 464  }
 465  
 466  class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model
 467  {
 468    protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical';
 469    protected $categoricalDataType = '';
 470    public $index;
 471    protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric';
 472    protected $numericDataType = '';
 473    protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText';
 474    protected $textDataType = '';
 475  
 476    public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical)
 477    {
 478      $this->categorical = $categorical;
 479    }
 480  
 481    public function getCategorical()
 482    {
 483      return $this->categorical;
 484    }
 485  
 486    public function setIndex($index)
 487    {
 488      $this->index = $index;
 489    }
 490  
 491    public function getIndex()
 492    {
 493      return $this->index;
 494    }
 495  
 496    public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric)
 497    {
 498      $this->numeric = $numeric;
 499    }
 500  
 501    public function getNumeric()
 502    {
 503      return $this->numeric;
 504    }
 505  
 506    public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text)
 507    {
 508      $this->text = $text;
 509    }
 510  
 511    public function getText()
 512    {
 513      return $this->text;
 514    }
 515  }
 516  
 517  class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection
 518  {
 519    protected $collection_key = 'values';
 520    public $count;
 521    protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues';
 522    protected $valuesDataType = 'array';
 523  
 524    public function setCount($count)
 525    {
 526      $this->count = $count;
 527    }
 528  
 529    public function getCount()
 530    {
 531      return $this->count;
 532    }
 533  
 534    public function setValues($values)
 535    {
 536      $this->values = $values;
 537    }
 538  
 539    public function getValues()
 540    {
 541      return $this->values;
 542    }
 543  }
 544  
 545  class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model
 546  {
 547    public $count;
 548    public $value;
 549  
 550    public function setCount($count)
 551    {
 552      $this->count = $count;
 553    }
 554  
 555    public function getCount()
 556    {
 557      return $this->count;
 558    }
 559  
 560    public function setValue($value)
 561    {
 562      $this->value = $value;
 563    }
 564  
 565    public function getValue()
 566    {
 567      return $this->value;
 568    }
 569  }
 570  
 571  class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model
 572  {
 573    public $count;
 574    public $mean;
 575    public $variance;
 576  
 577    public function setCount($count)
 578    {
 579      $this->count = $count;
 580    }
 581  
 582    public function getCount()
 583    {
 584      return $this->count;
 585    }
 586  
 587    public function setMean($mean)
 588    {
 589      $this->mean = $mean;
 590    }
 591  
 592    public function getMean()
 593    {
 594      return $this->mean;
 595    }
 596  
 597    public function setVariance($variance)
 598    {
 599      $this->variance = $variance;
 600    }
 601  
 602    public function getVariance()
 603    {
 604      return $this->variance;
 605    }
 606  }
 607  
 608  class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model
 609  {
 610    public $count;
 611  
 612    public function setCount($count)
 613    {
 614      $this->count = $count;
 615    }
 616  
 617    public function getCount()
 618    {
 619      return $this->count;
 620    }
 621  }
 622  
 623  class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection
 624  {
 625    protected $collection_key = 'text';
 626    protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric';
 627    protected $numericDataType = '';
 628    protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText';
 629    protected $textDataType = 'array';
 630  
 631    public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric)
 632    {
 633      $this->numeric = $numeric;
 634    }
 635  
 636    public function getNumeric()
 637    {
 638      return $this->numeric;
 639    }
 640  
 641    public function setText($text)
 642    {
 643      $this->text = $text;
 644    }
 645  
 646    public function getText()
 647    {
 648      return $this->text;
 649    }
 650  }
 651  
 652  class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model
 653  {
 654    public $count;
 655    public $mean;
 656    public $variance;
 657  
 658    public function setCount($count)
 659    {
 660      $this->count = $count;
 661    }
 662  
 663    public function getCount()
 664    {
 665      return $this->count;
 666    }
 667  
 668    public function setMean($mean)
 669    {
 670      $this->mean = $mean;
 671    }
 672  
 673    public function getMean()
 674    {
 675      return $this->mean;
 676    }
 677  
 678    public function setVariance($variance)
 679    {
 680      $this->variance = $variance;
 681    }
 682  
 683    public function getVariance()
 684    {
 685      return $this->variance;
 686    }
 687  }
 688  
 689  class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model
 690  {
 691    public $count;
 692    public $value;
 693  
 694    public function setCount($count)
 695    {
 696      $this->count = $count;
 697    }
 698  
 699    public function getCount()
 700    {
 701      return $this->count;
 702    }
 703  
 704    public function setValue($value)
 705    {
 706      $this->value = $value;
 707    }
 708  
 709    public function getValue()
 710    {
 711      return $this->value;
 712    }
 713  }
 714  
 715  class Google_Service_Prediction_AnalyzeErrors extends Google_Model
 716  {
 717  
 718  }
 719  
 720  class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model
 721  {
 722    public $confusionMatrix;
 723    public $confusionMatrixRowTotals;
 724    protected $modelinfoType = 'Google_Service_Prediction_Insert2';
 725    protected $modelinfoDataType = '';
 726  
 727    public function setConfusionMatrix($confusionMatrix)
 728    {
 729      $this->confusionMatrix = $confusionMatrix;
 730    }
 731  
 732    public function getConfusionMatrix()
 733    {
 734      return $this->confusionMatrix;
 735    }
 736  
 737    public function setConfusionMatrixRowTotals($confusionMatrixRowTotals)
 738    {
 739      $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
 740    }
 741  
 742    public function getConfusionMatrixRowTotals()
 743    {
 744      return $this->confusionMatrixRowTotals;
 745    }
 746  
 747    public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo)
 748    {
 749      $this->modelinfo = $modelinfo;
 750    }
 751  
 752    public function getModelinfo()
 753    {
 754      return $this->modelinfo;
 755    }
 756  }
 757  
 758  class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model
 759  {
 760  
 761  }
 762  
 763  class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model
 764  {
 765  
 766  }
 767  
 768  class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model
 769  {
 770  
 771  }
 772  
 773  class Google_Service_Prediction_Input extends Google_Model
 774  {
 775    protected $inputType = 'Google_Service_Prediction_InputInput';
 776    protected $inputDataType = '';
 777  
 778    public function setInput(Google_Service_Prediction_InputInput $input)
 779    {
 780      $this->input = $input;
 781    }
 782  
 783    public function getInput()
 784    {
 785      return $this->input;
 786    }
 787  }
 788  
 789  class Google_Service_Prediction_InputInput extends Google_Collection
 790  {
 791    protected $collection_key = 'csvInstance';
 792    public $csvInstance;
 793  
 794    public function setCsvInstance($csvInstance)
 795    {
 796      $this->csvInstance = $csvInstance;
 797    }
 798  
 799    public function getCsvInstance()
 800    {
 801      return $this->csvInstance;
 802    }
 803  }
 804  
 805  class Google_Service_Prediction_Insert extends Google_Collection
 806  {
 807    protected $collection_key = 'utility';
 808    public $id;
 809    public $modelType;
 810    public $sourceModel;
 811    public $storageDataLocation;
 812    public $storagePMMLLocation;
 813    public $storagePMMLModelLocation;
 814    protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances';
 815    protected $trainingInstancesDataType = 'array';
 816    public $utility;
 817  
 818    public function setId($id)
 819    {
 820      $this->id = $id;
 821    }
 822  
 823    public function getId()
 824    {
 825      return $this->id;
 826    }
 827  
 828    public function setModelType($modelType)
 829    {
 830      $this->modelType = $modelType;
 831    }
 832  
 833    public function getModelType()
 834    {
 835      return $this->modelType;
 836    }
 837  
 838    public function setSourceModel($sourceModel)
 839    {
 840      $this->sourceModel = $sourceModel;
 841    }
 842  
 843    public function getSourceModel()
 844    {
 845      return $this->sourceModel;
 846    }
 847  
 848    public function setStorageDataLocation($storageDataLocation)
 849    {
 850      $this->storageDataLocation = $storageDataLocation;
 851    }
 852  
 853    public function getStorageDataLocation()
 854    {
 855      return $this->storageDataLocation;
 856    }
 857  
 858    public function setStoragePMMLLocation($storagePMMLLocation)
 859    {
 860      $this->storagePMMLLocation = $storagePMMLLocation;
 861    }
 862  
 863    public function getStoragePMMLLocation()
 864    {
 865      return $this->storagePMMLLocation;
 866    }
 867  
 868    public function setStoragePMMLModelLocation($storagePMMLModelLocation)
 869    {
 870      $this->storagePMMLModelLocation = $storagePMMLModelLocation;
 871    }
 872  
 873    public function getStoragePMMLModelLocation()
 874    {
 875      return $this->storagePMMLModelLocation;
 876    }
 877  
 878    public function setTrainingInstances($trainingInstances)
 879    {
 880      $this->trainingInstances = $trainingInstances;
 881    }
 882  
 883    public function getTrainingInstances()
 884    {
 885      return $this->trainingInstances;
 886    }
 887  
 888    public function setUtility($utility)
 889    {
 890      $this->utility = $utility;
 891    }
 892  
 893    public function getUtility()
 894    {
 895      return $this->utility;
 896    }
 897  }
 898  
 899  class Google_Service_Prediction_Insert2 extends Google_Model
 900  {
 901    public $created;
 902    public $id;
 903    public $kind;
 904    protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo';
 905    protected $modelInfoDataType = '';
 906    public $modelType;
 907    public $selfLink;
 908    public $storageDataLocation;
 909    public $storagePMMLLocation;
 910    public $storagePMMLModelLocation;
 911    public $trainingComplete;
 912    public $trainingStatus;
 913  
 914    public function setCreated($created)
 915    {
 916      $this->created = $created;
 917    }
 918  
 919    public function getCreated()
 920    {
 921      return $this->created;
 922    }
 923  
 924    public function setId($id)
 925    {
 926      $this->id = $id;
 927    }
 928  
 929    public function getId()
 930    {
 931      return $this->id;
 932    }
 933  
 934    public function setKind($kind)
 935    {
 936      $this->kind = $kind;
 937    }
 938  
 939    public function getKind()
 940    {
 941      return $this->kind;
 942    }
 943  
 944    public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo)
 945    {
 946      $this->modelInfo = $modelInfo;
 947    }
 948  
 949    public function getModelInfo()
 950    {
 951      return $this->modelInfo;
 952    }
 953  
 954    public function setModelType($modelType)
 955    {
 956      $this->modelType = $modelType;
 957    }
 958  
 959    public function getModelType()
 960    {
 961      return $this->modelType;
 962    }
 963  
 964    public function setSelfLink($selfLink)
 965    {
 966      $this->selfLink = $selfLink;
 967    }
 968  
 969    public function getSelfLink()
 970    {
 971      return $this->selfLink;
 972    }
 973  
 974    public function setStorageDataLocation($storageDataLocation)
 975    {
 976      $this->storageDataLocation = $storageDataLocation;
 977    }
 978  
 979    public function getStorageDataLocation()
 980    {
 981      return $this->storageDataLocation;
 982    }
 983  
 984    public function setStoragePMMLLocation($storagePMMLLocation)
 985    {
 986      $this->storagePMMLLocation = $storagePMMLLocation;
 987    }
 988  
 989    public function getStoragePMMLLocation()
 990    {
 991      return $this->storagePMMLLocation;
 992    }
 993  
 994    public function setStoragePMMLModelLocation($storagePMMLModelLocation)
 995    {
 996      $this->storagePMMLModelLocation = $storagePMMLModelLocation;
 997    }
 998  
 999    public function getStoragePMMLModelLocation()
1000    {
1001      return $this->storagePMMLModelLocation;
1002    }
1003  
1004    public function setTrainingComplete($trainingComplete)
1005    {
1006      $this->trainingComplete = $trainingComplete;
1007    }
1008  
1009    public function getTrainingComplete()
1010    {
1011      return $this->trainingComplete;
1012    }
1013  
1014    public function setTrainingStatus($trainingStatus)
1015    {
1016      $this->trainingStatus = $trainingStatus;
1017    }
1018  
1019    public function getTrainingStatus()
1020    {
1021      return $this->trainingStatus;
1022    }
1023  }
1024  
1025  class Google_Service_Prediction_Insert2ModelInfo extends Google_Model
1026  {
1027    public $classWeightedAccuracy;
1028    public $classificationAccuracy;
1029    public $meanSquaredError;
1030    public $modelType;
1031    public $numberInstances;
1032    public $numberLabels;
1033  
1034    public function setClassWeightedAccuracy($classWeightedAccuracy)
1035    {
1036      $this->classWeightedAccuracy = $classWeightedAccuracy;
1037    }
1038  
1039    public function getClassWeightedAccuracy()
1040    {
1041      return $this->classWeightedAccuracy;
1042    }
1043  
1044    public function setClassificationAccuracy($classificationAccuracy)
1045    {
1046      $this->classificationAccuracy = $classificationAccuracy;
1047    }
1048  
1049    public function getClassificationAccuracy()
1050    {
1051      return $this->classificationAccuracy;
1052    }
1053  
1054    public function setMeanSquaredError($meanSquaredError)
1055    {
1056      $this->meanSquaredError = $meanSquaredError;
1057    }
1058  
1059    public function getMeanSquaredError()
1060    {
1061      return $this->meanSquaredError;
1062    }
1063  
1064    public function setModelType($modelType)
1065    {
1066      $this->modelType = $modelType;
1067    }
1068  
1069    public function getModelType()
1070    {
1071      return $this->modelType;
1072    }
1073  
1074    public function setNumberInstances($numberInstances)
1075    {
1076      $this->numberInstances = $numberInstances;
1077    }
1078  
1079    public function getNumberInstances()
1080    {
1081      return $this->numberInstances;
1082    }
1083  
1084    public function setNumberLabels($numberLabels)
1085    {
1086      $this->numberLabels = $numberLabels;
1087    }
1088  
1089    public function getNumberLabels()
1090    {
1091      return $this->numberLabels;
1092    }
1093  }
1094  
1095  class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection
1096  {
1097    protected $collection_key = 'csvInstance';
1098    public $csvInstance;
1099    public $output;
1100  
1101    public function setCsvInstance($csvInstance)
1102    {
1103      $this->csvInstance = $csvInstance;
1104    }
1105  
1106    public function getCsvInstance()
1107    {
1108      return $this->csvInstance;
1109    }
1110  
1111    public function setOutput($output)
1112    {
1113      $this->output = $output;
1114    }
1115  
1116    public function getOutput()
1117    {
1118      return $this->output;
1119    }
1120  }
1121  
1122  class Google_Service_Prediction_InsertUtility extends Google_Model
1123  {
1124  
1125  }
1126  
1127  class Google_Service_Prediction_Output extends Google_Collection
1128  {
1129    protected $collection_key = 'outputMulti';
1130    public $id;
1131    public $kind;
1132    public $outputLabel;
1133    protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti';
1134    protected $outputMultiDataType = 'array';
1135    public $outputValue;
1136    public $selfLink;
1137  
1138    public function setId($id)
1139    {
1140      $this->id = $id;
1141    }
1142  
1143    public function getId()
1144    {
1145      return $this->id;
1146    }
1147  
1148    public function setKind($kind)
1149    {
1150      $this->kind = $kind;
1151    }
1152  
1153    public function getKind()
1154    {
1155      return $this->kind;
1156    }
1157  
1158    public function setOutputLabel($outputLabel)
1159    {
1160      $this->outputLabel = $outputLabel;
1161    }
1162  
1163    public function getOutputLabel()
1164    {
1165      return $this->outputLabel;
1166    }
1167  
1168    public function setOutputMulti($outputMulti)
1169    {
1170      $this->outputMulti = $outputMulti;
1171    }
1172  
1173    public function getOutputMulti()
1174    {
1175      return $this->outputMulti;
1176    }
1177  
1178    public function setOutputValue($outputValue)
1179    {
1180      $this->outputValue = $outputValue;
1181    }
1182  
1183    public function getOutputValue()
1184    {
1185      return $this->outputValue;
1186    }
1187  
1188    public function setSelfLink($selfLink)
1189    {
1190      $this->selfLink = $selfLink;
1191    }
1192  
1193    public function getSelfLink()
1194    {
1195      return $this->selfLink;
1196    }
1197  }
1198  
1199  class Google_Service_Prediction_OutputOutputMulti extends Google_Model
1200  {
1201    public $label;
1202    public $score;
1203  
1204    public function setLabel($label)
1205    {
1206      $this->label = $label;
1207    }
1208  
1209    public function getLabel()
1210    {
1211      return $this->label;
1212    }
1213  
1214    public function setScore($score)
1215    {
1216      $this->score = $score;
1217    }
1218  
1219    public function getScore()
1220    {
1221      return $this->score;
1222    }
1223  }
1224  
1225  class Google_Service_Prediction_PredictionList extends Google_Collection
1226  {
1227    protected $collection_key = 'items';
1228    protected $itemsType = 'Google_Service_Prediction_Insert2';
1229    protected $itemsDataType = 'array';
1230    public $kind;
1231    public $nextPageToken;
1232    public $selfLink;
1233  
1234    public function setItems($items)
1235    {
1236      $this->items = $items;
1237    }
1238  
1239    public function getItems()
1240    {
1241      return $this->items;
1242    }
1243  
1244    public function setKind($kind)
1245    {
1246      $this->kind = $kind;
1247    }
1248  
1249    public function getKind()
1250    {
1251      return $this->kind;
1252    }
1253  
1254    public function setNextPageToken($nextPageToken)
1255    {
1256      $this->nextPageToken = $nextPageToken;
1257    }
1258  
1259    public function getNextPageToken()
1260    {
1261      return $this->nextPageToken;
1262    }
1263  
1264    public function setSelfLink($selfLink)
1265    {
1266      $this->selfLink = $selfLink;
1267    }
1268  
1269    public function getSelfLink()
1270    {
1271      return $this->selfLink;
1272    }
1273  }
1274  
1275  class Google_Service_Prediction_Update extends Google_Collection
1276  {
1277    protected $collection_key = 'csvInstance';
1278    public $csvInstance;
1279    public $output;
1280  
1281    public function setCsvInstance($csvInstance)
1282    {
1283      $this->csvInstance = $csvInstance;
1284    }
1285  
1286    public function getCsvInstance()
1287    {
1288      return $this->csvInstance;
1289    }
1290  
1291    public function setOutput($output)
1292    {
1293      $this->output = $output;
1294    }
1295  
1296    public function getOutput()
1297    {
1298      return $this->output;
1299    }
1300  }


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1