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 BinaryConfusionMatrix extends \Google\Model
|
---|
21 | {
|
---|
22 | public $accuracy;
|
---|
23 | public $f1Score;
|
---|
24 | /**
|
---|
25 | * @var string
|
---|
26 | */
|
---|
27 | public $falseNegatives;
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $falsePositives;
|
---|
32 | public $positiveClassThreshold;
|
---|
33 | public $precision;
|
---|
34 | public $recall;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $trueNegatives;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $truePositives;
|
---|
43 |
|
---|
44 | public function setAccuracy($accuracy)
|
---|
45 | {
|
---|
46 | $this->accuracy = $accuracy;
|
---|
47 | }
|
---|
48 | public function getAccuracy()
|
---|
49 | {
|
---|
50 | return $this->accuracy;
|
---|
51 | }
|
---|
52 | public function setF1Score($f1Score)
|
---|
53 | {
|
---|
54 | $this->f1Score = $f1Score;
|
---|
55 | }
|
---|
56 | public function getF1Score()
|
---|
57 | {
|
---|
58 | return $this->f1Score;
|
---|
59 | }
|
---|
60 | /**
|
---|
61 | * @param string
|
---|
62 | */
|
---|
63 | public function setFalseNegatives($falseNegatives)
|
---|
64 | {
|
---|
65 | $this->falseNegatives = $falseNegatives;
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * @return string
|
---|
69 | */
|
---|
70 | public function getFalseNegatives()
|
---|
71 | {
|
---|
72 | return $this->falseNegatives;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @param string
|
---|
76 | */
|
---|
77 | public function setFalsePositives($falsePositives)
|
---|
78 | {
|
---|
79 | $this->falsePositives = $falsePositives;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @return string
|
---|
83 | */
|
---|
84 | public function getFalsePositives()
|
---|
85 | {
|
---|
86 | return $this->falsePositives;
|
---|
87 | }
|
---|
88 | public function setPositiveClassThreshold($positiveClassThreshold)
|
---|
89 | {
|
---|
90 | $this->positiveClassThreshold = $positiveClassThreshold;
|
---|
91 | }
|
---|
92 | public function getPositiveClassThreshold()
|
---|
93 | {
|
---|
94 | return $this->positiveClassThreshold;
|
---|
95 | }
|
---|
96 | public function setPrecision($precision)
|
---|
97 | {
|
---|
98 | $this->precision = $precision;
|
---|
99 | }
|
---|
100 | public function getPrecision()
|
---|
101 | {
|
---|
102 | return $this->precision;
|
---|
103 | }
|
---|
104 | public function setRecall($recall)
|
---|
105 | {
|
---|
106 | $this->recall = $recall;
|
---|
107 | }
|
---|
108 | public function getRecall()
|
---|
109 | {
|
---|
110 | return $this->recall;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param string
|
---|
114 | */
|
---|
115 | public function setTrueNegatives($trueNegatives)
|
---|
116 | {
|
---|
117 | $this->trueNegatives = $trueNegatives;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return string
|
---|
121 | */
|
---|
122 | public function getTrueNegatives()
|
---|
123 | {
|
---|
124 | return $this->trueNegatives;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param string
|
---|
128 | */
|
---|
129 | public function setTruePositives($truePositives)
|
---|
130 | {
|
---|
131 | $this->truePositives = $truePositives;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return string
|
---|
135 | */
|
---|
136 | public function getTruePositives()
|
---|
137 | {
|
---|
138 | return $this->truePositives;
|
---|
139 | }
|
---|
140 | }
|
---|
141 |
|
---|
142 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
143 | class_alias(BinaryConfusionMatrix::class, 'Google_Service_Bigquery_BinaryConfusionMatrix');
|
---|