|
| 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 GoogleCloudAiplatformV1AggregationResult extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * Unspecified aggregation metric. |
| 24 | + */ |
| 25 | + public const AGGREGATION_METRIC_AGGREGATION_METRIC_UNSPECIFIED = 'AGGREGATION_METRIC_UNSPECIFIED'; |
| 26 | + /** |
| 27 | + * Average aggregation metric. Not supported for Pairwise metric. |
| 28 | + */ |
| 29 | + public const AGGREGATION_METRIC_AVERAGE = 'AVERAGE'; |
| 30 | + /** |
| 31 | + * Mode aggregation metric. |
| 32 | + */ |
| 33 | + public const AGGREGATION_METRIC_MODE = 'MODE'; |
| 34 | + /** |
| 35 | + * Standard deviation aggregation metric. Not supported for pairwise metric. |
| 36 | + */ |
| 37 | + public const AGGREGATION_METRIC_STANDARD_DEVIATION = 'STANDARD_DEVIATION'; |
| 38 | + /** |
| 39 | + * Variance aggregation metric. Not supported for pairwise metric. |
| 40 | + */ |
| 41 | + public const AGGREGATION_METRIC_VARIANCE = 'VARIANCE'; |
| 42 | + /** |
| 43 | + * Minimum aggregation metric. Not supported for pairwise metric. |
| 44 | + */ |
| 45 | + public const AGGREGATION_METRIC_MINIMUM = 'MINIMUM'; |
| 46 | + /** |
| 47 | + * Maximum aggregation metric. Not supported for pairwise metric. |
| 48 | + */ |
| 49 | + public const AGGREGATION_METRIC_MAXIMUM = 'MAXIMUM'; |
| 50 | + /** |
| 51 | + * Median aggregation metric. Not supported for pairwise metric. |
| 52 | + */ |
| 53 | + public const AGGREGATION_METRIC_MEDIAN = 'MEDIAN'; |
| 54 | + /** |
| 55 | + * 90th percentile aggregation metric. Not supported for pairwise metric. |
| 56 | + */ |
| 57 | + public const AGGREGATION_METRIC_PERCENTILE_P90 = 'PERCENTILE_P90'; |
| 58 | + /** |
| 59 | + * 95th percentile aggregation metric. Not supported for pairwise metric. |
| 60 | + */ |
| 61 | + public const AGGREGATION_METRIC_PERCENTILE_P95 = 'PERCENTILE_P95'; |
| 62 | + /** |
| 63 | + * 99th percentile aggregation metric. Not supported for pairwise metric. |
| 64 | + */ |
| 65 | + public const AGGREGATION_METRIC_PERCENTILE_P99 = 'PERCENTILE_P99'; |
| 66 | + /** |
| 67 | + * Aggregation metric. |
| 68 | + * |
| 69 | + * @var string |
| 70 | + */ |
| 71 | + public $aggregationMetric; |
| 72 | + protected $bleuMetricValueType = GoogleCloudAiplatformV1BleuMetricValue::class; |
| 73 | + protected $bleuMetricValueDataType = ''; |
| 74 | + protected $customCodeExecutionResultType = GoogleCloudAiplatformV1CustomCodeExecutionResult::class; |
| 75 | + protected $customCodeExecutionResultDataType = ''; |
| 76 | + protected $exactMatchMetricValueType = GoogleCloudAiplatformV1ExactMatchMetricValue::class; |
| 77 | + protected $exactMatchMetricValueDataType = ''; |
| 78 | + protected $pairwiseMetricResultType = GoogleCloudAiplatformV1PairwiseMetricResult::class; |
| 79 | + protected $pairwiseMetricResultDataType = ''; |
| 80 | + protected $pointwiseMetricResultType = GoogleCloudAiplatformV1PointwiseMetricResult::class; |
| 81 | + protected $pointwiseMetricResultDataType = ''; |
| 82 | + protected $rougeMetricValueType = GoogleCloudAiplatformV1RougeMetricValue::class; |
| 83 | + protected $rougeMetricValueDataType = ''; |
| 84 | + |
| 85 | + /** |
| 86 | + * Aggregation metric. |
| 87 | + * |
| 88 | + * Accepted values: AGGREGATION_METRIC_UNSPECIFIED, AVERAGE, MODE, |
| 89 | + * STANDARD_DEVIATION, VARIANCE, MINIMUM, MAXIMUM, MEDIAN, PERCENTILE_P90, |
| 90 | + * PERCENTILE_P95, PERCENTILE_P99 |
| 91 | + * |
| 92 | + * @param self::AGGREGATION_METRIC_* $aggregationMetric |
| 93 | + */ |
| 94 | + public function setAggregationMetric($aggregationMetric) |
| 95 | + { |
| 96 | + $this->aggregationMetric = $aggregationMetric; |
| 97 | + } |
| 98 | + /** |
| 99 | + * @return self::AGGREGATION_METRIC_* |
| 100 | + */ |
| 101 | + public function getAggregationMetric() |
| 102 | + { |
| 103 | + return $this->aggregationMetric; |
| 104 | + } |
| 105 | + /** |
| 106 | + * Results for bleu metric. |
| 107 | + * |
| 108 | + * @param GoogleCloudAiplatformV1BleuMetricValue $bleuMetricValue |
| 109 | + */ |
| 110 | + public function setBleuMetricValue(GoogleCloudAiplatformV1BleuMetricValue $bleuMetricValue) |
| 111 | + { |
| 112 | + $this->bleuMetricValue = $bleuMetricValue; |
| 113 | + } |
| 114 | + /** |
| 115 | + * @return GoogleCloudAiplatformV1BleuMetricValue |
| 116 | + */ |
| 117 | + public function getBleuMetricValue() |
| 118 | + { |
| 119 | + return $this->bleuMetricValue; |
| 120 | + } |
| 121 | + /** |
| 122 | + * Result for code execution metric. |
| 123 | + * |
| 124 | + * @param GoogleCloudAiplatformV1CustomCodeExecutionResult $customCodeExecutionResult |
| 125 | + */ |
| 126 | + public function setCustomCodeExecutionResult(GoogleCloudAiplatformV1CustomCodeExecutionResult $customCodeExecutionResult) |
| 127 | + { |
| 128 | + $this->customCodeExecutionResult = $customCodeExecutionResult; |
| 129 | + } |
| 130 | + /** |
| 131 | + * @return GoogleCloudAiplatformV1CustomCodeExecutionResult |
| 132 | + */ |
| 133 | + public function getCustomCodeExecutionResult() |
| 134 | + { |
| 135 | + return $this->customCodeExecutionResult; |
| 136 | + } |
| 137 | + /** |
| 138 | + * Results for exact match metric. |
| 139 | + * |
| 140 | + * @param GoogleCloudAiplatformV1ExactMatchMetricValue $exactMatchMetricValue |
| 141 | + */ |
| 142 | + public function setExactMatchMetricValue(GoogleCloudAiplatformV1ExactMatchMetricValue $exactMatchMetricValue) |
| 143 | + { |
| 144 | + $this->exactMatchMetricValue = $exactMatchMetricValue; |
| 145 | + } |
| 146 | + /** |
| 147 | + * @return GoogleCloudAiplatformV1ExactMatchMetricValue |
| 148 | + */ |
| 149 | + public function getExactMatchMetricValue() |
| 150 | + { |
| 151 | + return $this->exactMatchMetricValue; |
| 152 | + } |
| 153 | + /** |
| 154 | + * Result for pairwise metric. |
| 155 | + * |
| 156 | + * @param GoogleCloudAiplatformV1PairwiseMetricResult $pairwiseMetricResult |
| 157 | + */ |
| 158 | + public function setPairwiseMetricResult(GoogleCloudAiplatformV1PairwiseMetricResult $pairwiseMetricResult) |
| 159 | + { |
| 160 | + $this->pairwiseMetricResult = $pairwiseMetricResult; |
| 161 | + } |
| 162 | + /** |
| 163 | + * @return GoogleCloudAiplatformV1PairwiseMetricResult |
| 164 | + */ |
| 165 | + public function getPairwiseMetricResult() |
| 166 | + { |
| 167 | + return $this->pairwiseMetricResult; |
| 168 | + } |
| 169 | + /** |
| 170 | + * Result for pointwise metric. |
| 171 | + * |
| 172 | + * @param GoogleCloudAiplatformV1PointwiseMetricResult $pointwiseMetricResult |
| 173 | + */ |
| 174 | + public function setPointwiseMetricResult(GoogleCloudAiplatformV1PointwiseMetricResult $pointwiseMetricResult) |
| 175 | + { |
| 176 | + $this->pointwiseMetricResult = $pointwiseMetricResult; |
| 177 | + } |
| 178 | + /** |
| 179 | + * @return GoogleCloudAiplatformV1PointwiseMetricResult |
| 180 | + */ |
| 181 | + public function getPointwiseMetricResult() |
| 182 | + { |
| 183 | + return $this->pointwiseMetricResult; |
| 184 | + } |
| 185 | + /** |
| 186 | + * Results for rouge metric. |
| 187 | + * |
| 188 | + * @param GoogleCloudAiplatformV1RougeMetricValue $rougeMetricValue |
| 189 | + */ |
| 190 | + public function setRougeMetricValue(GoogleCloudAiplatformV1RougeMetricValue $rougeMetricValue) |
| 191 | + { |
| 192 | + $this->rougeMetricValue = $rougeMetricValue; |
| 193 | + } |
| 194 | + /** |
| 195 | + * @return GoogleCloudAiplatformV1RougeMetricValue |
| 196 | + */ |
| 197 | + public function getRougeMetricValue() |
| 198 | + { |
| 199 | + return $this->rougeMetricValue; |
| 200 | + } |
| 201 | +} |
| 202 | + |
| 203 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 204 | +class_alias(GoogleCloudAiplatformV1AggregationResult::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1AggregationResult'); |
0 commit comments