pub struct HyperparameterSpec {
pub goal: i32,
pub params: Vec<ParameterSpec>,
pub max_trials: i32,
pub max_parallel_trials: i32,
pub hyperparameter_metric_tag: String,
}
Expand description
Represents a set of hyperparameters to optimize.
Fields§
§goal: i32
Required. The type of goal to use for tuning. Available types are
MAXIMIZE
and MINIMIZE
.
Defaults to MAXIMIZE
.
params: Vec<ParameterSpec>
Required. The set of parameters to tune.
max_trials: i32
Optional. How many training trials should be attempted to optimize the specified hyperparameters.
Defaults to one.
max_parallel_trials: i32
Optional. The number of training trials to run concurrently. You can reduce the time it takes to perform hyperparameter tuning by adding trials in parallel. However, each trail only benefits from the information gained in completed trials. That means that a trial does not get access to the results of trials running at the same time, which could reduce the quality of the overall optimization.
Each trial will use the same scale tier and machine types.
Defaults to one.
hyperparameter_metric_tag: String
Optional. The Tensorflow summary tag name to use for optimizing trials. For current versions of Tensorflow, this tag name should exactly match what is shown in Tensorboard, including all scopes. For versions of Tensorflow prior to 0.12, this should be only the tag passed to tf.Summary. By default, “training/hptuning/metric” will be used.
Implementations§
Trait Implementations§
Source§impl Clone for HyperparameterSpec
impl Clone for HyperparameterSpec
Source§fn clone(&self) -> HyperparameterSpec
fn clone(&self) -> HyperparameterSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HyperparameterSpec
impl Debug for HyperparameterSpec
Source§impl Default for HyperparameterSpec
impl Default for HyperparameterSpec
Source§fn default() -> HyperparameterSpec
fn default() -> HyperparameterSpec
Source§impl Message for HyperparameterSpec
impl Message for HyperparameterSpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for HyperparameterSpec
impl PartialEq for HyperparameterSpec
impl StructuralPartialEq for HyperparameterSpec
Auto Trait Implementations§
impl Freeze for HyperparameterSpec
impl RefUnwindSafe for HyperparameterSpec
impl Send for HyperparameterSpec
impl Sync for HyperparameterSpec
impl Unpin for HyperparameterSpec
impl UnwindSafe for HyperparameterSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request