PluginProbe
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) / 1.2.0
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) v1.2.0
9.1.2 9.1.1 9.1.0 9.0.2 9.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 All 153 releases
wp-analytify / lib / Google / Service / Prediction.php

Prediction.php in Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) 1.2.0, at lib/Google/Service/Prediction.php

1,291 lines 30.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 Analytify_Google_Service_Prediction extends Analytify_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 Analytify_Google_Client $client
51 */
52 public function __construct(Analytify_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 Analytify_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 Analytify_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 Analytify_Google_Service_Prediction(...);
206 * $hostedmodels = $predictionService->hostedmodels;
207 * </code>
208 */
209 class Analytify_Google_Service_Prediction_Hostedmodels_Resource extends Analytify_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 Analytify_Google_Input $postBody
221 * @param array $optParams Optional parameters.
222 * @return Analytify_Google_Service_Prediction_Output
223 */
224 public function predict($project, $hostedModelName, Analytify_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), "Analytify_Google_Service_Prediction_Output");
229 }
230 }
231
232 /**
233 * The "trainedmodels" collection of methods.
234 * Typical usage is:
235 * <code>
236 * $predictionService = new Analytify_Google_Service_Prediction(...);
237 * $trainedmodels = $predictionService->trainedmodels;
238 * </code>
239 */
240 class Analytify_Google_Service_Prediction_Trainedmodels_Resource extends Analytify_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 Analytify_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), "Analytify_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 Analytify_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), "Analytify_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 Analytify_Google_Insert $postBody
297 * @param array $optParams Optional parameters.
298 * @return Analytify_Google_Service_Prediction_Insert2
299 */
300 public function insert($project, Analytify_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), "Analytify_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 Analytify_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), "Analytify_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 Analytify_Google_Input $postBody
333 * @param array $optParams Optional parameters.
334 * @return Analytify_Google_Service_Prediction_Output
335 */
336 public function predict($project, $id, Analytify_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), "Analytify_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 Analytify_Google_Update $postBody
350 * @param array $optParams Optional parameters.
351 * @return Analytify_Google_Service_Prediction_Insert2
352 */
353 public function update($project, $id, Analytify_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), "Analytify_Google_Service_Prediction_Insert2");
358 }
359 }
360
361
362
363
364 class Analytify_Google_Service_Prediction_Analyze extends Analytify_Google_Collection
365 {
366 protected $dataDescriptionType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescription';
367 protected $dataDescriptionDataType = '';
368 public $errors;
369 public $id;
370 public $kind;
371 protected $modelDescriptionType = 'Analytify_Google_Service_Prediction_AnalyzeModelDescription';
372 protected $modelDescriptionDataType = '';
373 public $selfLink;
374
375 public function setDataDescription(Analytify_Google_Service_Prediction_AnalyzeDataDescription $dataDescription)
376 {
377 $this->dataDescription = $dataDescription;
378 }
379
380 public function getDataDescription()
381 {
382 return $this->dataDescription;
383 }
384
385 public function setErrors($errors)
386 {
387 $this->errors = $errors;
388 }
389
390 public function getErrors()
391 {
392 return $this->errors;
393 }
394
395 public function setId($id)
396 {
397 $this->id = $id;
398 }
399
400 public function getId()
401 {
402 return $this->id;
403 }
404
405 public function setKind($kind)
406 {
407 $this->kind = $kind;
408 }
409
410 public function getKind()
411 {
412 return $this->kind;
413 }
414
415 public function setModelDescription(Analytify_Google_Service_Prediction_AnalyzeModelDescription $modelDescription)
416 {
417 $this->modelDescription = $modelDescription;
418 }
419
420 public function getModelDescription()
421 {
422 return $this->modelDescription;
423 }
424
425 public function setSelfLink($selfLink)
426 {
427 $this->selfLink = $selfLink;
428 }
429
430 public function getSelfLink()
431 {
432 return $this->selfLink;
433 }
434 }
435
436 class Analytify_Google_Service_Prediction_AnalyzeDataDescription extends Analytify_Google_Collection
437 {
438 protected $featuresType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeatures';
439 protected $featuresDataType = 'array';
440 protected $outputFeatureType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature';
441 protected $outputFeatureDataType = '';
442
443 public function setFeatures($features)
444 {
445 $this->features = $features;
446 }
447
448 public function getFeatures()
449 {
450 return $this->features;
451 }
452
453 public function setOutputFeature(Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature)
454 {
455 $this->outputFeature = $outputFeature;
456 }
457
458 public function getOutputFeature()
459 {
460 return $this->outputFeature;
461 }
462 }
463
464 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Analytify_Google_Model
465 {
466 protected $categoricalType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical';
467 protected $categoricalDataType = '';
468 public $index;
469 protected $numericType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric';
470 protected $numericDataType = '';
471 protected $textType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText';
472 protected $textDataType = '';
473
474 public function setCategorical(Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical)
475 {
476 $this->categorical = $categorical;
477 }
478
479 public function getCategorical()
480 {
481 return $this->categorical;
482 }
483
484 public function setIndex($index)
485 {
486 $this->index = $index;
487 }
488
489 public function getIndex()
490 {
491 return $this->index;
492 }
493
494 public function setNumeric(Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric)
495 {
496 $this->numeric = $numeric;
497 }
498
499 public function getNumeric()
500 {
501 return $this->numeric;
502 }
503
504 public function setText(Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text)
505 {
506 $this->text = $text;
507 }
508
509 public function getText()
510 {
511 return $this->text;
512 }
513 }
514
515 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Analytify_Google_Collection
516 {
517 public $count;
518 protected $valuesType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues';
519 protected $valuesDataType = 'array';
520
521 public function setCount($count)
522 {
523 $this->count = $count;
524 }
525
526 public function getCount()
527 {
528 return $this->count;
529 }
530
531 public function setValues($values)
532 {
533 $this->values = $values;
534 }
535
536 public function getValues()
537 {
538 return $this->values;
539 }
540 }
541
542 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Analytify_Google_Model
543 {
544 public $count;
545 public $value;
546
547 public function setCount($count)
548 {
549 $this->count = $count;
550 }
551
552 public function getCount()
553 {
554 return $this->count;
555 }
556
557 public function setValue($value)
558 {
559 $this->value = $value;
560 }
561
562 public function getValue()
563 {
564 return $this->value;
565 }
566 }
567
568 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Analytify_Google_Model
569 {
570 public $count;
571 public $mean;
572 public $variance;
573
574 public function setCount($count)
575 {
576 $this->count = $count;
577 }
578
579 public function getCount()
580 {
581 return $this->count;
582 }
583
584 public function setMean($mean)
585 {
586 $this->mean = $mean;
587 }
588
589 public function getMean()
590 {
591 return $this->mean;
592 }
593
594 public function setVariance($variance)
595 {
596 $this->variance = $variance;
597 }
598
599 public function getVariance()
600 {
601 return $this->variance;
602 }
603 }
604
605 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Analytify_Google_Model
606 {
607 public $count;
608
609 public function setCount($count)
610 {
611 $this->count = $count;
612 }
613
614 public function getCount()
615 {
616 return $this->count;
617 }
618 }
619
620 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Analytify_Google_Collection
621 {
622 protected $numericType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric';
623 protected $numericDataType = '';
624 protected $textType = 'Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText';
625 protected $textDataType = 'array';
626
627 public function setNumeric(Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric)
628 {
629 $this->numeric = $numeric;
630 }
631
632 public function getNumeric()
633 {
634 return $this->numeric;
635 }
636
637 public function setText($text)
638 {
639 $this->text = $text;
640 }
641
642 public function getText()
643 {
644 return $this->text;
645 }
646 }
647
648 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Analytify_Google_Model
649 {
650 public $count;
651 public $mean;
652 public $variance;
653
654 public function setCount($count)
655 {
656 $this->count = $count;
657 }
658
659 public function getCount()
660 {
661 return $this->count;
662 }
663
664 public function setMean($mean)
665 {
666 $this->mean = $mean;
667 }
668
669 public function getMean()
670 {
671 return $this->mean;
672 }
673
674 public function setVariance($variance)
675 {
676 $this->variance = $variance;
677 }
678
679 public function getVariance()
680 {
681 return $this->variance;
682 }
683 }
684
685 class Analytify_Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Analytify_Google_Model
686 {
687 public $count;
688 public $value;
689
690 public function setCount($count)
691 {
692 $this->count = $count;
693 }
694
695 public function getCount()
696 {
697 return $this->count;
698 }
699
700 public function setValue($value)
701 {
702 $this->value = $value;
703 }
704
705 public function getValue()
706 {
707 return $this->value;
708 }
709 }
710
711 class Analytify_Google_Service_Prediction_AnalyzeErrors extends Analytify_Google_Model
712 {
713
714 }
715
716 class Analytify_Google_Service_Prediction_AnalyzeModelDescription extends Analytify_Google_Model
717 {
718 public $confusionMatrix;
719 public $confusionMatrixRowTotals;
720 protected $modelinfoType = 'Analytify_Google_Service_Prediction_Insert2';
721 protected $modelinfoDataType = '';
722
723 public function setConfusionMatrix($confusionMatrix)
724 {
725 $this->confusionMatrix = $confusionMatrix;
726 }
727
728 public function getConfusionMatrix()
729 {
730 return $this->confusionMatrix;
731 }
732
733 public function setConfusionMatrixRowTotals($confusionMatrixRowTotals)
734 {
735 $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
736 }
737
738 public function getConfusionMatrixRowTotals()
739 {
740 return $this->confusionMatrixRowTotals;
741 }
742
743 public function setModelinfo(Analytify_Google_Service_Prediction_Insert2 $modelinfo)
744 {
745 $this->modelinfo = $modelinfo;
746 }
747
748 public function getModelinfo()
749 {
750 return $this->modelinfo;
751 }
752 }
753
754 class Analytify_Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Analytify_Google_Model
755 {
756
757 }
758
759 class Analytify_Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Analytify_Google_Model
760 {
761
762 }
763
764 class Analytify_Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Analytify_Google_Model
765 {
766
767 }
768
769 class Analytify_Google_Service_Prediction_Input extends Analytify_Google_Model
770 {
771 protected $inputType = 'Analytify_Google_Service_Prediction_InputInput';
772 protected $inputDataType = '';
773
774 public function setInput(Analytify_Google_Service_Prediction_InputInput $input)
775 {
776 $this->input = $input;
777 }
778
779 public function getInput()
780 {
781 return $this->input;
782 }
783 }
784
785 class Analytify_Google_Service_Prediction_InputInput extends Analytify_Google_Collection
786 {
787 public $csvInstance;
788
789 public function setCsvInstance($csvInstance)
790 {
791 $this->csvInstance = $csvInstance;
792 }
793
794 public function getCsvInstance()
795 {
796 return $this->csvInstance;
797 }
798 }
799
800 class Analytify_Google_Service_Prediction_Insert extends Analytify_Google_Collection
801 {
802 public $id;
803 public $modelType;
804 public $sourceModel;
805 public $storageDataLocation;
806 public $storagePMMLLocation;
807 public $storagePMMLModelLocation;
808 protected $trainingInstancesType = 'Analytify_Google_Service_Prediction_InsertTrainingInstances';
809 protected $trainingInstancesDataType = 'array';
810 public $utility;
811
812 public function setId($id)
813 {
814 $this->id = $id;
815 }
816
817 public function getId()
818 {
819 return $this->id;
820 }
821
822 public function setModelType($modelType)
823 {
824 $this->modelType = $modelType;
825 }
826
827 public function getModelType()
828 {
829 return $this->modelType;
830 }
831
832 public function setSourceModel($sourceModel)
833 {
834 $this->sourceModel = $sourceModel;
835 }
836
837 public function getSourceModel()
838 {
839 return $this->sourceModel;
840 }
841
842 public function setStorageDataLocation($storageDataLocation)
843 {
844 $this->storageDataLocation = $storageDataLocation;
845 }
846
847 public function getStorageDataLocation()
848 {
849 return $this->storageDataLocation;
850 }
851
852 public function setStoragePMMLLocation($storagePMMLLocation)
853 {
854 $this->storagePMMLLocation = $storagePMMLLocation;
855 }
856
857 public function getStoragePMMLLocation()
858 {
859 return $this->storagePMMLLocation;
860 }
861
862 public function setStoragePMMLModelLocation($storagePMMLModelLocation)
863 {
864 $this->storagePMMLModelLocation = $storagePMMLModelLocation;
865 }
866
867 public function getStoragePMMLModelLocation()
868 {
869 return $this->storagePMMLModelLocation;
870 }
871
872 public function setTrainingInstances($trainingInstances)
873 {
874 $this->trainingInstances = $trainingInstances;
875 }
876
877 public function getTrainingInstances()
878 {
879 return $this->trainingInstances;
880 }
881
882 public function setUtility($utility)
883 {
884 $this->utility = $utility;
885 }
886
887 public function getUtility()
888 {
889 return $this->utility;
890 }
891 }
892
893 class Analytify_Google_Service_Prediction_Insert2 extends Analytify_Google_Model
894 {
895 public $created;
896 public $id;
897 public $kind;
898 protected $modelInfoType = 'Analytify_Google_Service_Prediction_Insert2ModelInfo';
899 protected $modelInfoDataType = '';
900 public $modelType;
901 public $selfLink;
902 public $storageDataLocation;
903 public $storagePMMLLocation;
904 public $storagePMMLModelLocation;
905 public $trainingComplete;
906 public $trainingStatus;
907
908 public function setCreated($created)
909 {
910 $this->created = $created;
911 }
912
913 public function getCreated()
914 {
915 return $this->created;
916 }
917
918 public function setId($id)
919 {
920 $this->id = $id;
921 }
922
923 public function getId()
924 {
925 return $this->id;
926 }
927
928 public function setKind($kind)
929 {
930 $this->kind = $kind;
931 }
932
933 public function getKind()
934 {
935 return $this->kind;
936 }
937
938 public function setModelInfo(Analytify_Google_Service_Prediction_Insert2ModelInfo $modelInfo)
939 {
940 $this->modelInfo = $modelInfo;
941 }
942
943 public function getModelInfo()
944 {
945 return $this->modelInfo;
946 }
947
948 public function setModelType($modelType)
949 {
950 $this->modelType = $modelType;
951 }
952
953 public function getModelType()
954 {
955 return $this->modelType;
956 }
957
958 public function setSelfLink($selfLink)
959 {
960 $this->selfLink = $selfLink;
961 }
962
963 public function getSelfLink()
964 {
965 return $this->selfLink;
966 }
967
968 public function setStorageDataLocation($storageDataLocation)
969 {
970 $this->storageDataLocation = $storageDataLocation;
971 }
972
973 public function getStorageDataLocation()
974 {
975 return $this->storageDataLocation;
976 }
977
978 public function setStoragePMMLLocation($storagePMMLLocation)
979 {
980 $this->storagePMMLLocation = $storagePMMLLocation;
981 }
982
983 public function getStoragePMMLLocation()
984 {
985 return $this->storagePMMLLocation;
986 }
987
988 public function setStoragePMMLModelLocation($storagePMMLModelLocation)
989 {
990 $this->storagePMMLModelLocation = $storagePMMLModelLocation;
991 }
992
993 public function getStoragePMMLModelLocation()
994 {
995 return $this->storagePMMLModelLocation;
996 }
997
998 public function setTrainingComplete($trainingComplete)
999 {
1000 $this->trainingComplete = $trainingComplete;
1001 }
1002
1003 public function getTrainingComplete()
1004 {
1005 return $this->trainingComplete;
1006 }
1007
1008 public function setTrainingStatus($trainingStatus)
1009 {
1010 $this->trainingStatus = $trainingStatus;
1011 }
1012
1013 public function getTrainingStatus()
1014 {
1015 return $this->trainingStatus;
1016 }
1017 }
1018
1019 class Analytify_Google_Service_Prediction_Insert2ModelInfo extends Analytify_Google_Model
1020 {
1021 public $classWeightedAccuracy;
1022 public $classificationAccuracy;
1023 public $meanSquaredError;
1024 public $modelType;
1025 public $numberInstances;
1026 public $numberLabels;
1027
1028 public function setClassWeightedAccuracy($classWeightedAccuracy)
1029 {
1030 $this->classWeightedAccuracy = $classWeightedAccuracy;
1031 }
1032
1033 public function getClassWeightedAccuracy()
1034 {
1035 return $this->classWeightedAccuracy;
1036 }
1037
1038 public function setClassificationAccuracy($classificationAccuracy)
1039 {
1040 $this->classificationAccuracy = $classificationAccuracy;
1041 }
1042
1043 public function getClassificationAccuracy()
1044 {
1045 return $this->classificationAccuracy;
1046 }
1047
1048 public function setMeanSquaredError($meanSquaredError)
1049 {
1050 $this->meanSquaredError = $meanSquaredError;
1051 }
1052
1053 public function getMeanSquaredError()
1054 {
1055 return $this->meanSquaredError;
1056 }
1057
1058 public function setModelType($modelType)
1059 {
1060 $this->modelType = $modelType;
1061 }
1062
1063 public function getModelType()
1064 {
1065 return $this->modelType;
1066 }
1067
1068 public function setNumberInstances($numberInstances)
1069 {
1070 $this->numberInstances = $numberInstances;
1071 }
1072
1073 public function getNumberInstances()
1074 {
1075 return $this->numberInstances;
1076 }
1077
1078 public function setNumberLabels($numberLabels)
1079 {
1080 $this->numberLabels = $numberLabels;
1081 }
1082
1083 public function getNumberLabels()
1084 {
1085 return $this->numberLabels;
1086 }
1087 }
1088
1089 class Analytify_Google_Service_Prediction_InsertTrainingInstances extends Analytify_Google_Collection
1090 {
1091 public $csvInstance;
1092 public $output;
1093
1094 public function setCsvInstance($csvInstance)
1095 {
1096 $this->csvInstance = $csvInstance;
1097 }
1098
1099 public function getCsvInstance()
1100 {
1101 return $this->csvInstance;
1102 }
1103
1104 public function setOutput($output)
1105 {
1106 $this->output = $output;
1107 }
1108
1109 public function getOutput()
1110 {
1111 return $this->output;
1112 }
1113 }
1114
1115 class Analytify_Google_Service_Prediction_InsertUtility extends Analytify_Google_Model
1116 {
1117
1118 }
1119
1120 class Analytify_Google_Service_Prediction_Output extends Analytify_Google_Collection
1121 {
1122 public $id;
1123 public $kind;
1124 public $outputLabel;
1125 protected $outputMultiType = 'Analytify_Google_Service_Prediction_OutputOutputMulti';
1126 protected $outputMultiDataType = 'array';
1127 public $outputValue;
1128 public $selfLink;
1129
1130 public function setId($id)
1131 {
1132 $this->id = $id;
1133 }
1134
1135 public function getId()
1136 {
1137 return $this->id;
1138 }
1139
1140 public function setKind($kind)
1141 {
1142 $this->kind = $kind;
1143 }
1144
1145 public function getKind()
1146 {
1147 return $this->kind;
1148 }
1149
1150 public function setOutputLabel($outputLabel)
1151 {
1152 $this->outputLabel = $outputLabel;
1153 }
1154
1155 public function getOutputLabel()
1156 {
1157 return $this->outputLabel;
1158 }
1159
1160 public function setOutputMulti($outputMulti)
1161 {
1162 $this->outputMulti = $outputMulti;
1163 }
1164
1165 public function getOutputMulti()
1166 {
1167 return $this->outputMulti;
1168 }
1169
1170 public function setOutputValue($outputValue)
1171 {
1172 $this->outputValue = $outputValue;
1173 }
1174
1175 public function getOutputValue()
1176 {
1177 return $this->outputValue;
1178 }
1179
1180 public function setSelfLink($selfLink)
1181 {
1182 $this->selfLink = $selfLink;
1183 }
1184
1185 public function getSelfLink()
1186 {
1187 return $this->selfLink;
1188 }
1189 }
1190
1191 class Analytify_Google_Service_Prediction_OutputOutputMulti extends Analytify_Google_Model
1192 {
1193 public $label;
1194 public $score;
1195
1196 public function setLabel($label)
1197 {
1198 $this->label = $label;
1199 }
1200
1201 public function getLabel()
1202 {
1203 return $this->label;
1204 }
1205
1206 public function setScore($score)
1207 {
1208 $this->score = $score;
1209 }
1210
1211 public function getScore()
1212 {
1213 return $this->score;
1214 }
1215 }
1216
1217 class Analytify_Google_Service_Prediction_PredictionList extends Analytify_Google_Collection
1218 {
1219 protected $itemsType = 'Analytify_Google_Service_Prediction_Insert2';
1220 protected $itemsDataType = 'array';
1221 public $kind;
1222 public $nextPageToken;
1223 public $selfLink;
1224
1225 public function setItems($items)
1226 {
1227 $this->items = $items;
1228 }
1229
1230 public function getItems()
1231 {
1232 return $this->items;
1233 }
1234
1235 public function setKind($kind)
1236 {
1237 $this->kind = $kind;
1238 }
1239
1240 public function getKind()
1241 {
1242 return $this->kind;
1243 }
1244
1245 public function setNextPageToken($nextPageToken)
1246 {
1247 $this->nextPageToken = $nextPageToken;
1248 }
1249
1250 public function getNextPageToken()
1251 {
1252 return $this->nextPageToken;
1253 }
1254
1255 public function setSelfLink($selfLink)
1256 {
1257 $this->selfLink = $selfLink;
1258 }
1259
1260 public function getSelfLink()
1261 {
1262 return $this->selfLink;
1263 }
1264 }
1265
1266 class Analytify_Google_Service_Prediction_Update extends Analytify_Google_Collection
1267 {
1268 public $csvInstance;
1269 public $output;
1270
1271 public function setCsvInstance($csvInstance)
1272 {
1273 $this->csvInstance = $csvInstance;
1274 }
1275
1276 public function getCsvInstance()
1277 {
1278 return $this->csvInstance;
1279 }
1280
1281 public function setOutput($output)
1282 {
1283 $this->output = $output;
1284 }
1285
1286 public function getOutput()
1287 {
1288 return $this->output;
1289 }
1290 }
1291