[e3d4e0a] | 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\CloudNaturalLanguage;
|
---|
| 19 |
|
---|
| 20 | class XPSClassificationEvaluationMetrics extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'confidenceMetricsEntries';
|
---|
| 23 | /**
|
---|
| 24 | * @var float
|
---|
| 25 | */
|
---|
| 26 | public $auPrc;
|
---|
| 27 | /**
|
---|
| 28 | * @var float
|
---|
| 29 | */
|
---|
| 30 | public $auRoc;
|
---|
| 31 | /**
|
---|
| 32 | * @var float
|
---|
| 33 | */
|
---|
| 34 | public $baseAuPrc;
|
---|
| 35 | protected $confidenceMetricsEntriesType = XPSConfidenceMetricsEntry::class;
|
---|
| 36 | protected $confidenceMetricsEntriesDataType = 'array';
|
---|
| 37 | protected $confusionMatrixType = XPSConfusionMatrix::class;
|
---|
| 38 | protected $confusionMatrixDataType = '';
|
---|
| 39 | /**
|
---|
| 40 | * @var int
|
---|
| 41 | */
|
---|
| 42 | public $evaluatedExamplesCount;
|
---|
| 43 | /**
|
---|
| 44 | * @var float
|
---|
| 45 | */
|
---|
| 46 | public $logLoss;
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * @param float
|
---|
| 50 | */
|
---|
| 51 | public function setAuPrc($auPrc)
|
---|
| 52 | {
|
---|
| 53 | $this->auPrc = $auPrc;
|
---|
| 54 | }
|
---|
| 55 | /**
|
---|
| 56 | * @return float
|
---|
| 57 | */
|
---|
| 58 | public function getAuPrc()
|
---|
| 59 | {
|
---|
| 60 | return $this->auPrc;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @param float
|
---|
| 64 | */
|
---|
| 65 | public function setAuRoc($auRoc)
|
---|
| 66 | {
|
---|
| 67 | $this->auRoc = $auRoc;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @return float
|
---|
| 71 | */
|
---|
| 72 | public function getAuRoc()
|
---|
| 73 | {
|
---|
| 74 | return $this->auRoc;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @param float
|
---|
| 78 | */
|
---|
| 79 | public function setBaseAuPrc($baseAuPrc)
|
---|
| 80 | {
|
---|
| 81 | $this->baseAuPrc = $baseAuPrc;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @return float
|
---|
| 85 | */
|
---|
| 86 | public function getBaseAuPrc()
|
---|
| 87 | {
|
---|
| 88 | return $this->baseAuPrc;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @param XPSConfidenceMetricsEntry[]
|
---|
| 92 | */
|
---|
| 93 | public function setConfidenceMetricsEntries($confidenceMetricsEntries)
|
---|
| 94 | {
|
---|
| 95 | $this->confidenceMetricsEntries = $confidenceMetricsEntries;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @return XPSConfidenceMetricsEntry[]
|
---|
| 99 | */
|
---|
| 100 | public function getConfidenceMetricsEntries()
|
---|
| 101 | {
|
---|
| 102 | return $this->confidenceMetricsEntries;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param XPSConfusionMatrix
|
---|
| 106 | */
|
---|
| 107 | public function setConfusionMatrix(XPSConfusionMatrix $confusionMatrix)
|
---|
| 108 | {
|
---|
| 109 | $this->confusionMatrix = $confusionMatrix;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return XPSConfusionMatrix
|
---|
| 113 | */
|
---|
| 114 | public function getConfusionMatrix()
|
---|
| 115 | {
|
---|
| 116 | return $this->confusionMatrix;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param int
|
---|
| 120 | */
|
---|
| 121 | public function setEvaluatedExamplesCount($evaluatedExamplesCount)
|
---|
| 122 | {
|
---|
| 123 | $this->evaluatedExamplesCount = $evaluatedExamplesCount;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return int
|
---|
| 127 | */
|
---|
| 128 | public function getEvaluatedExamplesCount()
|
---|
| 129 | {
|
---|
| 130 | return $this->evaluatedExamplesCount;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param float
|
---|
| 134 | */
|
---|
| 135 | public function setLogLoss($logLoss)
|
---|
| 136 | {
|
---|
| 137 | $this->logLoss = $logLoss;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return float
|
---|
| 141 | */
|
---|
| 142 | public function getLogLoss()
|
---|
| 143 | {
|
---|
| 144 | return $this->logLoss;
|
---|
| 145 | }
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 149 | class_alias(XPSClassificationEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSClassificationEvaluationMetrics');
|
---|