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

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

Upload project files

  • Property mode set to 100644
File size: 2.8 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 XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry extends \Google\Model
21{
22 /**
23 * @var float
24 */
25 public $confidenceThreshold;
26 protected $confusionMatrixType = XPSConfusionMatrix::class;
27 protected $confusionMatrixDataType = '';
28 /**
29 * @var float
30 */
31 public $diceScoreCoefficient;
32 /**
33 * @var float
34 */
35 public $iouScore;
36 /**
37 * @var float
38 */
39 public $precision;
40 /**
41 * @var float
42 */
43 public $recall;
44
45 /**
46 * @param float
47 */
48 public function setConfidenceThreshold($confidenceThreshold)
49 {
50 $this->confidenceThreshold = $confidenceThreshold;
51 }
52 /**
53 * @return float
54 */
55 public function getConfidenceThreshold()
56 {
57 return $this->confidenceThreshold;
58 }
59 /**
60 * @param XPSConfusionMatrix
61 */
62 public function setConfusionMatrix(XPSConfusionMatrix $confusionMatrix)
63 {
64 $this->confusionMatrix = $confusionMatrix;
65 }
66 /**
67 * @return XPSConfusionMatrix
68 */
69 public function getConfusionMatrix()
70 {
71 return $this->confusionMatrix;
72 }
73 /**
74 * @param float
75 */
76 public function setDiceScoreCoefficient($diceScoreCoefficient)
77 {
78 $this->diceScoreCoefficient = $diceScoreCoefficient;
79 }
80 /**
81 * @return float
82 */
83 public function getDiceScoreCoefficient()
84 {
85 return $this->diceScoreCoefficient;
86 }
87 /**
88 * @param float
89 */
90 public function setIouScore($iouScore)
91 {
92 $this->iouScore = $iouScore;
93 }
94 /**
95 * @return float
96 */
97 public function getIouScore()
98 {
99 return $this->iouScore;
100 }
101 /**
102 * @param float
103 */
104 public function setPrecision($precision)
105 {
106 $this->precision = $precision;
107 }
108 /**
109 * @return float
110 */
111 public function getPrecision()
112 {
113 return $this->precision;
114 }
115 /**
116 * @param float
117 */
118 public function setRecall($recall)
119 {
120 $this->recall = $recall;
121 }
122 /**
123 * @return float
124 */
125 public function getRecall()
126 {
127 return $this->recall;
128 }
129}
130
131// Adding a class alias for backwards compatibility with the previous class name.
132class_alias(XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry::class, 'Google_Service_CloudNaturalLanguage_XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry');
Note: See TracBrowser for help on using the repository browser.