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 BqmlTrainingRunTrainingOptions extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var bool
|
---|
24 | */
|
---|
25 | public $earlyStop;
|
---|
26 | public $l1Reg;
|
---|
27 | public $l2Reg;
|
---|
28 | public $learnRate;
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $learnRateStrategy;
|
---|
33 | public $lineSearchInitLearnRate;
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $maxIteration;
|
---|
38 | public $minRelProgress;
|
---|
39 | /**
|
---|
40 | * @var bool
|
---|
41 | */
|
---|
42 | public $warmStart;
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * @param bool
|
---|
46 | */
|
---|
47 | public function setEarlyStop($earlyStop)
|
---|
48 | {
|
---|
49 | $this->earlyStop = $earlyStop;
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * @return bool
|
---|
53 | */
|
---|
54 | public function getEarlyStop()
|
---|
55 | {
|
---|
56 | return $this->earlyStop;
|
---|
57 | }
|
---|
58 | public function setL1Reg($l1Reg)
|
---|
59 | {
|
---|
60 | $this->l1Reg = $l1Reg;
|
---|
61 | }
|
---|
62 | public function getL1Reg()
|
---|
63 | {
|
---|
64 | return $this->l1Reg;
|
---|
65 | }
|
---|
66 | public function setL2Reg($l2Reg)
|
---|
67 | {
|
---|
68 | $this->l2Reg = $l2Reg;
|
---|
69 | }
|
---|
70 | public function getL2Reg()
|
---|
71 | {
|
---|
72 | return $this->l2Reg;
|
---|
73 | }
|
---|
74 | public function setLearnRate($learnRate)
|
---|
75 | {
|
---|
76 | $this->learnRate = $learnRate;
|
---|
77 | }
|
---|
78 | public function getLearnRate()
|
---|
79 | {
|
---|
80 | return $this->learnRate;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @param string
|
---|
84 | */
|
---|
85 | public function setLearnRateStrategy($learnRateStrategy)
|
---|
86 | {
|
---|
87 | $this->learnRateStrategy = $learnRateStrategy;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @return string
|
---|
91 | */
|
---|
92 | public function getLearnRateStrategy()
|
---|
93 | {
|
---|
94 | return $this->learnRateStrategy;
|
---|
95 | }
|
---|
96 | public function setLineSearchInitLearnRate($lineSearchInitLearnRate)
|
---|
97 | {
|
---|
98 | $this->lineSearchInitLearnRate = $lineSearchInitLearnRate;
|
---|
99 | }
|
---|
100 | public function getLineSearchInitLearnRate()
|
---|
101 | {
|
---|
102 | return $this->lineSearchInitLearnRate;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param string
|
---|
106 | */
|
---|
107 | public function setMaxIteration($maxIteration)
|
---|
108 | {
|
---|
109 | $this->maxIteration = $maxIteration;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return string
|
---|
113 | */
|
---|
114 | public function getMaxIteration()
|
---|
115 | {
|
---|
116 | return $this->maxIteration;
|
---|
117 | }
|
---|
118 | public function setMinRelProgress($minRelProgress)
|
---|
119 | {
|
---|
120 | $this->minRelProgress = $minRelProgress;
|
---|
121 | }
|
---|
122 | public function getMinRelProgress()
|
---|
123 | {
|
---|
124 | return $this->minRelProgress;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param bool
|
---|
128 | */
|
---|
129 | public function setWarmStart($warmStart)
|
---|
130 | {
|
---|
131 | $this->warmStart = $warmStart;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return bool
|
---|
135 | */
|
---|
136 | public function getWarmStart()
|
---|
137 | {
|
---|
138 | return $this->warmStart;
|
---|
139 | }
|
---|
140 | }
|
---|
141 |
|
---|
142 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
143 | class_alias(BqmlTrainingRunTrainingOptions::class, 'Google_Service_Bigquery_BqmlTrainingRunTrainingOptions');
|
---|