1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 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 | namespace Google\Service\Bigquery;
|
---|
19 |
|
---|
20 | class TrainingRun extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'results';
|
---|
23 | protected $classLevelGlobalExplanationsType = GlobalExplanation::class;
|
---|
24 | protected $classLevelGlobalExplanationsDataType = 'array';
|
---|
25 | protected $dataSplitResultType = DataSplitResult::class;
|
---|
26 | protected $dataSplitResultDataType = '';
|
---|
27 | protected $evaluationMetricsType = EvaluationMetrics::class;
|
---|
28 | protected $evaluationMetricsDataType = '';
|
---|
29 | protected $modelLevelGlobalExplanationType = GlobalExplanation::class;
|
---|
30 | protected $modelLevelGlobalExplanationDataType = '';
|
---|
31 | protected $resultsType = IterationResult::class;
|
---|
32 | protected $resultsDataType = 'array';
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $startTime;
|
---|
37 | protected $trainingOptionsType = TrainingOptions::class;
|
---|
38 | protected $trainingOptionsDataType = '';
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $trainingStartTime;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $vertexAiModelId;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $vertexAiModelVersion;
|
---|
51 |
|
---|
52 | /**
|
---|
53 | * @param GlobalExplanation[]
|
---|
54 | */
|
---|
55 | public function setClassLevelGlobalExplanations($classLevelGlobalExplanations)
|
---|
56 | {
|
---|
57 | $this->classLevelGlobalExplanations = $classLevelGlobalExplanations;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @return GlobalExplanation[]
|
---|
61 | */
|
---|
62 | public function getClassLevelGlobalExplanations()
|
---|
63 | {
|
---|
64 | return $this->classLevelGlobalExplanations;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @param DataSplitResult
|
---|
68 | */
|
---|
69 | public function setDataSplitResult(DataSplitResult $dataSplitResult)
|
---|
70 | {
|
---|
71 | $this->dataSplitResult = $dataSplitResult;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @return DataSplitResult
|
---|
75 | */
|
---|
76 | public function getDataSplitResult()
|
---|
77 | {
|
---|
78 | return $this->dataSplitResult;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @param EvaluationMetrics
|
---|
82 | */
|
---|
83 | public function setEvaluationMetrics(EvaluationMetrics $evaluationMetrics)
|
---|
84 | {
|
---|
85 | $this->evaluationMetrics = $evaluationMetrics;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @return EvaluationMetrics
|
---|
89 | */
|
---|
90 | public function getEvaluationMetrics()
|
---|
91 | {
|
---|
92 | return $this->evaluationMetrics;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @param GlobalExplanation
|
---|
96 | */
|
---|
97 | public function setModelLevelGlobalExplanation(GlobalExplanation $modelLevelGlobalExplanation)
|
---|
98 | {
|
---|
99 | $this->modelLevelGlobalExplanation = $modelLevelGlobalExplanation;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @return GlobalExplanation
|
---|
103 | */
|
---|
104 | public function getModelLevelGlobalExplanation()
|
---|
105 | {
|
---|
106 | return $this->modelLevelGlobalExplanation;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @param IterationResult[]
|
---|
110 | */
|
---|
111 | public function setResults($results)
|
---|
112 | {
|
---|
113 | $this->results = $results;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @return IterationResult[]
|
---|
117 | */
|
---|
118 | public function getResults()
|
---|
119 | {
|
---|
120 | return $this->results;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @param string
|
---|
124 | */
|
---|
125 | public function setStartTime($startTime)
|
---|
126 | {
|
---|
127 | $this->startTime = $startTime;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @return string
|
---|
131 | */
|
---|
132 | public function getStartTime()
|
---|
133 | {
|
---|
134 | return $this->startTime;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @param TrainingOptions
|
---|
138 | */
|
---|
139 | public function setTrainingOptions(TrainingOptions $trainingOptions)
|
---|
140 | {
|
---|
141 | $this->trainingOptions = $trainingOptions;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @return TrainingOptions
|
---|
145 | */
|
---|
146 | public function getTrainingOptions()
|
---|
147 | {
|
---|
148 | return $this->trainingOptions;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @param string
|
---|
152 | */
|
---|
153 | public function setTrainingStartTime($trainingStartTime)
|
---|
154 | {
|
---|
155 | $this->trainingStartTime = $trainingStartTime;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @return string
|
---|
159 | */
|
---|
160 | public function getTrainingStartTime()
|
---|
161 | {
|
---|
162 | return $this->trainingStartTime;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @param string
|
---|
166 | */
|
---|
167 | public function setVertexAiModelId($vertexAiModelId)
|
---|
168 | {
|
---|
169 | $this->vertexAiModelId = $vertexAiModelId;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @return string
|
---|
173 | */
|
---|
174 | public function getVertexAiModelId()
|
---|
175 | {
|
---|
176 | return $this->vertexAiModelId;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @param string
|
---|
180 | */
|
---|
181 | public function setVertexAiModelVersion($vertexAiModelVersion)
|
---|
182 | {
|
---|
183 | $this->vertexAiModelVersion = $vertexAiModelVersion;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @return string
|
---|
187 | */
|
---|
188 | public function getVertexAiModelVersion()
|
---|
189 | {
|
---|
190 | return $this->vertexAiModelVersion;
|
---|
191 | }
|
---|
192 | }
|
---|
193 |
|
---|
194 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
195 | class_alias(TrainingRun::class, 'Google_Service_Bigquery_TrainingRun');
|
---|