[][src]Struct gcp_client::google::cloud::ml::v1::HyperparameterSpec

pub struct HyperparameterSpec {
    pub goal: i32,
    pub params: Vec<ParameterSpec>,
    pub max_trials: i32,
    pub max_parallel_trials: i32,
    pub hyperparameter_metric_tag: String,
}

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

impl HyperparameterSpec[src]

pub fn goal(&self) -> GoalType[src]

Returns the enum value of goal, or the default if the field is set to an invalid enum value.

pub fn set_goal(&mut self, value: GoalType)[src]

Sets goal to the provided enum value.

Trait Implementations

impl Clone for HyperparameterSpec[src]

impl Debug for HyperparameterSpec[src]

impl Default for HyperparameterSpec[src]

impl Message for HyperparameterSpec[src]

impl PartialEq<HyperparameterSpec> for HyperparameterSpec[src]

impl StructuralPartialEq for HyperparameterSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]