source: vendor/google/apiclient-services/src/CloudNaturalLanguage/XPSTextSentimentEvaluationMetrics.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 3.2 KB
Line 
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
18namespace Google\Service\CloudNaturalLanguage;
19
20class XPSTextSentimentEvaluationMetrics extends \Google\Model
21{
22 protected $confusionMatrixType = XPSConfusionMatrix::class;
23 protected $confusionMatrixDataType = '';
24 /**
25 * @var float
26 */
27 public $f1Score;
28 /**
29 * @var float
30 */
31 public $linearKappa;
32 /**
33 * @var float
34 */
35 public $meanAbsoluteError;
36 /**
37 * @var float
38 */
39 public $meanSquaredError;
40 /**
41 * @var float
42 */
43 public $precision;
44 /**
45 * @var float
46 */
47 public $quadraticKappa;
48 /**
49 * @var float
50 */
51 public $recall;
52
53 /**
54 * @param XPSConfusionMatrix
55 */
56 public function setConfusionMatrix(XPSConfusionMatrix $confusionMatrix)
57 {
58 $this->confusionMatrix = $confusionMatrix;
59 }
60 /**
61 * @return XPSConfusionMatrix
62 */
63 public function getConfusionMatrix()
64 {
65 return $this->confusionMatrix;
66 }
67 /**
68 * @param float
69 */
70 public function setF1Score($f1Score)
71 {
72 $this->f1Score = $f1Score;
73 }
74 /**
75 * @return float
76 */
77 public function getF1Score()
78 {
79 return $this->f1Score;
80 }
81 /**
82 * @param float
83 */
84 public function setLinearKappa($linearKappa)
85 {
86 $this->linearKappa = $linearKappa;
87 }
88 /**
89 * @return float
90 */
91 public function getLinearKappa()
92 {
93 return $this->linearKappa;
94 }
95 /**
96 * @param float
97 */
98 public function setMeanAbsoluteError($meanAbsoluteError)
99 {
100 $this->meanAbsoluteError = $meanAbsoluteError;
101 }
102 /**
103 * @return float
104 */
105 public function getMeanAbsoluteError()
106 {
107 return $this->meanAbsoluteError;
108 }
109 /**
110 * @param float
111 */
112 public function setMeanSquaredError($meanSquaredError)
113 {
114 $this->meanSquaredError = $meanSquaredError;
115 }
116 /**
117 * @return float
118 */
119 public function getMeanSquaredError()
120 {
121 return $this->meanSquaredError;
122 }
123 /**
124 * @param float
125 */
126 public function setPrecision($precision)
127 {
128 $this->precision = $precision;
129 }
130 /**
131 * @return float
132 */
133 public function getPrecision()
134 {
135 return $this->precision;
136 }
137 /**
138 * @param float
139 */
140 public function setQuadraticKappa($quadraticKappa)
141 {
142 $this->quadraticKappa = $quadraticKappa;
143 }
144 /**
145 * @return float
146 */
147 public function getQuadraticKappa()
148 {
149 return $this->quadraticKappa;
150 }
151 /**
152 * @param float
153 */
154 public function setRecall($recall)
155 {
156 $this->recall = $recall;
157 }
158 /**
159 * @return float
160 */
161 public function getRecall()
162 {
163 return $this->recall;
164 }
165}
166
167// Adding a class alias for backwards compatibility with the previous class name.
168class_alias(XPSTextSentimentEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSTextSentimentEvaluationMetrics');
Note: See TracBrowser for help on using the repository browser.