#[non_exhaustive]pub struct HyperparameterTuningJob {Show 18 fields
pub name: String,
pub display_name: String,
pub study_spec: Option<StudySpec>,
pub max_trial_count: i32,
pub parallel_trial_count: i32,
pub max_failed_trial_count: i32,
pub trial_job_spec: Option<CustomJobSpec>,
pub trials: Vec<Trial>,
pub state: JobState,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub error: Option<Status>,
pub labels: HashMap<String, String>,
pub encryption_spec: Option<EncryptionSpec>,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
/* private fields */
}Expand description
Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification and multiple CustomJobs with identical CustomJob specification.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Resource name of the HyperparameterTuningJob.
display_name: StringRequired. The display name of the HyperparameterTuningJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.
study_spec: Option<StudySpec>Required. Study configuration of the HyperparameterTuningJob.
max_trial_count: i32Required. The desired total number of Trials.
parallel_trial_count: i32Required. The desired number of Trials to run in parallel.
max_failed_trial_count: i32The number of failed Trials that need to be seen before failing the HyperparameterTuningJob.
If set to 0, Vertex AI decides how many Trials must fail before the whole job fails.
trial_job_spec: Option<CustomJobSpec>Required. The spec of a trial job. The same spec applies to the CustomJobs created in all the trials.
trials: Vec<Trial>Output only. Trials of the HyperparameterTuningJob.
state: JobStateOutput only. The detailed state of the job.
create_time: Option<Timestamp>Output only. Time when the HyperparameterTuningJob was created.
start_time: Option<Timestamp>Output only. Time when the HyperparameterTuningJob for the first time
entered the JOB_STATE_RUNNING state.
end_time: Option<Timestamp>Output only. Time when the HyperparameterTuningJob entered any of the
following states: JOB_STATE_SUCCEEDED, JOB_STATE_FAILED,
JOB_STATE_CANCELLED.
update_time: Option<Timestamp>Output only. Time when the HyperparameterTuningJob was most recently updated.
error: Option<Status>Output only. Only populated when job’s state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.
labels: HashMap<String, String>The labels with user-defined metadata to organize HyperparameterTuningJobs.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed.
See https://goo.gl/xmQnxf for more information and examples of labels.
encryption_spec: Option<EncryptionSpec>Customer-managed encryption key options for a HyperparameterTuningJob. If this is set, then all resources created by the HyperparameterTuningJob will be encrypted with the provided encryption key.
satisfies_pzs: boolOutput only. Reserved for future use.
satisfies_pzi: boolOutput only. Reserved for future use.
Implementations§
Source§impl HyperparameterTuningJob
impl HyperparameterTuningJob
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_study_spec<T: Into<Option<StudySpec>>>(self, v: T) -> Self
pub fn set_study_spec<T: Into<Option<StudySpec>>>(self, v: T) -> Self
Sets the value of study_spec.
Sourcepub fn set_max_trial_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_trial_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_trial_count.
Sourcepub fn set_parallel_trial_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_parallel_trial_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of parallel_trial_count.
Sourcepub fn set_max_failed_trial_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_failed_trial_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_failed_trial_count.
Sourcepub fn set_trial_job_spec<T: Into<Option<CustomJobSpec>>>(self, v: T) -> Self
pub fn set_trial_job_spec<T: Into<Option<CustomJobSpec>>>(self, v: T) -> Self
Sets the value of trial_job_spec.
Sourcepub fn set_trials<T, V>(self, v: T) -> Self
pub fn set_trials<T, V>(self, v: T) -> Self
Sets the value of trials.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_end_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_end_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_encryption_spec<T: Into<Option<EncryptionSpec>>>(self, v: T) -> Self
pub fn set_encryption_spec<T: Into<Option<EncryptionSpec>>>(self, v: T) -> Self
Sets the value of encryption_spec.
Sourcepub fn set_satisfies_pzs<T: Into<bool>>(self, v: T) -> Self
pub fn set_satisfies_pzs<T: Into<bool>>(self, v: T) -> Self
Sets the value of satisfies_pzs.
Sourcepub fn set_satisfies_pzi<T: Into<bool>>(self, v: T) -> Self
pub fn set_satisfies_pzi<T: Into<bool>>(self, v: T) -> Self
Sets the value of satisfies_pzi.
Trait Implementations§
Source§impl Clone for HyperparameterTuningJob
impl Clone for HyperparameterTuningJob
Source§fn clone(&self) -> HyperparameterTuningJob
fn clone(&self) -> HyperparameterTuningJob
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more