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\CloudMachineLearningEngine; 19 20class GoogleCloudMlV1HyperparameterSpec extends \Google\Collection 21{ 22 protected $collection_key = 'params'; 23 /** 24 * @var string 25 */ 26 public $algorithm; 27 /** 28 * @var bool 29 */ 30 public $enableTrialEarlyStopping; 31 /** 32 * @var string 33 */ 34 public $goal; 35 /** 36 * @var string 37 */ 38 public $hyperparameterMetricTag; 39 /** 40 * @var int 41 */ 42 public $maxFailedTrials; 43 /** 44 * @var int 45 */ 46 public $maxParallelTrials; 47 /** 48 * @var int 49 */ 50 public $maxTrials; 51 protected $paramsType = GoogleCloudMlV1ParameterSpec::class; 52 protected $paramsDataType = 'array'; 53 /** 54 * @var string 55 */ 56 public $resumePreviousJobId; 57 58 /** 59 * @param string 60 */ 61 public function setAlgorithm($algorithm) 62 { 63 $this->algorithm = $algorithm; 64 } 65 /** 66 * @return string 67 */ 68 public function getAlgorithm() 69 { 70 return $this->algorithm; 71 } 72 /** 73 * @param bool 74 */ 75 public function setEnableTrialEarlyStopping($enableTrialEarlyStopping) 76 { 77 $this->enableTrialEarlyStopping = $enableTrialEarlyStopping; 78 } 79 /** 80 * @return bool 81 */ 82 public function getEnableTrialEarlyStopping() 83 { 84 return $this->enableTrialEarlyStopping; 85 } 86 /** 87 * @param string 88 */ 89 public function setGoal($goal) 90 { 91 $this->goal = $goal; 92 } 93 /** 94 * @return string 95 */ 96 public function getGoal() 97 { 98 return $this->goal; 99 } 100 /** 101 * @param string 102 */ 103 public function setHyperparameterMetricTag($hyperparameterMetricTag) 104 { 105 $this->hyperparameterMetricTag = $hyperparameterMetricTag; 106 } 107 /** 108 * @return string 109 */ 110 public function getHyperparameterMetricTag() 111 { 112 return $this->hyperparameterMetricTag; 113 } 114 /** 115 * @param int 116 */ 117 public function setMaxFailedTrials($maxFailedTrials) 118 { 119 $this->maxFailedTrials = $maxFailedTrials; 120 } 121 /** 122 * @return int 123 */ 124 public function getMaxFailedTrials() 125 { 126 return $this->maxFailedTrials; 127 } 128 /** 129 * @param int 130 */ 131 public function setMaxParallelTrials($maxParallelTrials) 132 { 133 $this->maxParallelTrials = $maxParallelTrials; 134 } 135 /** 136 * @return int 137 */ 138 public function getMaxParallelTrials() 139 { 140 return $this->maxParallelTrials; 141 } 142 /** 143 * @param int 144 */ 145 public function setMaxTrials($maxTrials) 146 { 147 $this->maxTrials = $maxTrials; 148 } 149 /** 150 * @return int 151 */ 152 public function getMaxTrials() 153 { 154 return $this->maxTrials; 155 } 156 /** 157 * @param GoogleCloudMlV1ParameterSpec[] 158 */ 159 public function setParams($params) 160 { 161 $this->params = $params; 162 } 163 /** 164 * @return GoogleCloudMlV1ParameterSpec[] 165 */ 166 public function getParams() 167 { 168 return $this->params; 169 } 170 /** 171 * @param string 172 */ 173 public function setResumePreviousJobId($resumePreviousJobId) 174 { 175 $this->resumePreviousJobId = $resumePreviousJobId; 176 } 177 /** 178 * @return string 179 */ 180 public function getResumePreviousJobId() 181 { 182 return $this->resumePreviousJobId; 183 } 184} 185 186// Adding a class alias for backwards compatibility with the previous class name. 187class_alias(GoogleCloudMlV1HyperparameterSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpec'); 188