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\Aiplatform;
|
---|
19 |
|
---|
20 | class GoogleCloudAiplatformV1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var float
|
---|
24 | */
|
---|
25 | public $accuracy;
|
---|
26 | /**
|
---|
27 | * @var float
|
---|
28 | */
|
---|
29 | public $baselineModelWinRate;
|
---|
30 | /**
|
---|
31 | * @var float
|
---|
32 | */
|
---|
33 | public $cohensKappa;
|
---|
34 | /**
|
---|
35 | * @var float
|
---|
36 | */
|
---|
37 | public $f1Score;
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $falseNegativeCount;
|
---|
42 | /**
|
---|
43 | * @var string
|
---|
44 | */
|
---|
45 | public $falsePositiveCount;
|
---|
46 | /**
|
---|
47 | * @var float
|
---|
48 | */
|
---|
49 | public $humanPreferenceBaselineModelWinRate;
|
---|
50 | /**
|
---|
51 | * @var float
|
---|
52 | */
|
---|
53 | public $humanPreferenceModelWinRate;
|
---|
54 | /**
|
---|
55 | * @var float
|
---|
56 | */
|
---|
57 | public $modelWinRate;
|
---|
58 | /**
|
---|
59 | * @var float
|
---|
60 | */
|
---|
61 | public $precision;
|
---|
62 | /**
|
---|
63 | * @var float
|
---|
64 | */
|
---|
65 | public $recall;
|
---|
66 | /**
|
---|
67 | * @var string
|
---|
68 | */
|
---|
69 | public $trueNegativeCount;
|
---|
70 | /**
|
---|
71 | * @var string
|
---|
72 | */
|
---|
73 | public $truePositiveCount;
|
---|
74 |
|
---|
75 | /**
|
---|
76 | * @param float
|
---|
77 | */
|
---|
78 | public function setAccuracy($accuracy)
|
---|
79 | {
|
---|
80 | $this->accuracy = $accuracy;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @return float
|
---|
84 | */
|
---|
85 | public function getAccuracy()
|
---|
86 | {
|
---|
87 | return $this->accuracy;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @param float
|
---|
91 | */
|
---|
92 | public function setBaselineModelWinRate($baselineModelWinRate)
|
---|
93 | {
|
---|
94 | $this->baselineModelWinRate = $baselineModelWinRate;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @return float
|
---|
98 | */
|
---|
99 | public function getBaselineModelWinRate()
|
---|
100 | {
|
---|
101 | return $this->baselineModelWinRate;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @param float
|
---|
105 | */
|
---|
106 | public function setCohensKappa($cohensKappa)
|
---|
107 | {
|
---|
108 | $this->cohensKappa = $cohensKappa;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @return float
|
---|
112 | */
|
---|
113 | public function getCohensKappa()
|
---|
114 | {
|
---|
115 | return $this->cohensKappa;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @param float
|
---|
119 | */
|
---|
120 | public function setF1Score($f1Score)
|
---|
121 | {
|
---|
122 | $this->f1Score = $f1Score;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @return float
|
---|
126 | */
|
---|
127 | public function getF1Score()
|
---|
128 | {
|
---|
129 | return $this->f1Score;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @param string
|
---|
133 | */
|
---|
134 | public function setFalseNegativeCount($falseNegativeCount)
|
---|
135 | {
|
---|
136 | $this->falseNegativeCount = $falseNegativeCount;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @return string
|
---|
140 | */
|
---|
141 | public function getFalseNegativeCount()
|
---|
142 | {
|
---|
143 | return $this->falseNegativeCount;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @param string
|
---|
147 | */
|
---|
148 | public function setFalsePositiveCount($falsePositiveCount)
|
---|
149 | {
|
---|
150 | $this->falsePositiveCount = $falsePositiveCount;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @return string
|
---|
154 | */
|
---|
155 | public function getFalsePositiveCount()
|
---|
156 | {
|
---|
157 | return $this->falsePositiveCount;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @param float
|
---|
161 | */
|
---|
162 | public function setHumanPreferenceBaselineModelWinRate($humanPreferenceBaselineModelWinRate)
|
---|
163 | {
|
---|
164 | $this->humanPreferenceBaselineModelWinRate = $humanPreferenceBaselineModelWinRate;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @return float
|
---|
168 | */
|
---|
169 | public function getHumanPreferenceBaselineModelWinRate()
|
---|
170 | {
|
---|
171 | return $this->humanPreferenceBaselineModelWinRate;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @param float
|
---|
175 | */
|
---|
176 | public function setHumanPreferenceModelWinRate($humanPreferenceModelWinRate)
|
---|
177 | {
|
---|
178 | $this->humanPreferenceModelWinRate = $humanPreferenceModelWinRate;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @return float
|
---|
182 | */
|
---|
183 | public function getHumanPreferenceModelWinRate()
|
---|
184 | {
|
---|
185 | return $this->humanPreferenceModelWinRate;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @param float
|
---|
189 | */
|
---|
190 | public function setModelWinRate($modelWinRate)
|
---|
191 | {
|
---|
192 | $this->modelWinRate = $modelWinRate;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @return float
|
---|
196 | */
|
---|
197 | public function getModelWinRate()
|
---|
198 | {
|
---|
199 | return $this->modelWinRate;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @param float
|
---|
203 | */
|
---|
204 | public function setPrecision($precision)
|
---|
205 | {
|
---|
206 | $this->precision = $precision;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @return float
|
---|
210 | */
|
---|
211 | public function getPrecision()
|
---|
212 | {
|
---|
213 | return $this->precision;
|
---|
214 | }
|
---|
215 | /**
|
---|
216 | * @param float
|
---|
217 | */
|
---|
218 | public function setRecall($recall)
|
---|
219 | {
|
---|
220 | $this->recall = $recall;
|
---|
221 | }
|
---|
222 | /**
|
---|
223 | * @return float
|
---|
224 | */
|
---|
225 | public function getRecall()
|
---|
226 | {
|
---|
227 | return $this->recall;
|
---|
228 | }
|
---|
229 | /**
|
---|
230 | * @param string
|
---|
231 | */
|
---|
232 | public function setTrueNegativeCount($trueNegativeCount)
|
---|
233 | {
|
---|
234 | $this->trueNegativeCount = $trueNegativeCount;
|
---|
235 | }
|
---|
236 | /**
|
---|
237 | * @return string
|
---|
238 | */
|
---|
239 | public function getTrueNegativeCount()
|
---|
240 | {
|
---|
241 | return $this->trueNegativeCount;
|
---|
242 | }
|
---|
243 | /**
|
---|
244 | * @param string
|
---|
245 | */
|
---|
246 | public function setTruePositiveCount($truePositiveCount)
|
---|
247 | {
|
---|
248 | $this->truePositiveCount = $truePositiveCount;
|
---|
249 | }
|
---|
250 | /**
|
---|
251 | * @return string
|
---|
252 | */
|
---|
253 | public function getTruePositiveCount()
|
---|
254 | {
|
---|
255 | return $this->truePositiveCount;
|
---|
256 | }
|
---|
257 | }
|
---|
258 |
|
---|
259 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
260 | class_alias(GoogleCloudAiplatformV1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics');
|
---|