pub struct StudySpec {
pub metrics: Vec<MetricSpec>,
pub parameters: Vec<ParameterSpec>,
pub algorithm: String,
pub observation_noise: i32,
pub metadata: Vec<KeyValue>,
pub automated_stopping_spec: Option<AutomatedStoppingSpec>,
}
Expand description
Represents specification of a Study.
Fields§
§metrics: Vec<MetricSpec>
Metric specs for the Study.
parameters: Vec<ParameterSpec>
The set of parameters to tune.
algorithm: String
The search algorithm specified for the Study. See pyvizier.Algorithm for a list of native Vizier algorithms.
observation_noise: i32
The observation noise level of the study. Currently only supported by the Optimizer service. Not supported by HyperparamterTuningJob or TrainingPipeline.
metadata: Vec<KeyValue>
Arbitrary metadata associated with the Study. This is not processed by the Vizier server, but is readable/writeable by Pythia policies and user code. FYI, the “” namespace may be read and written by the user. NOTE: Each KeyValue item is limited to 10 megabytes. NOTE: Keys should be unique within their namespaces.
automated_stopping_spec: Option<AutomatedStoppingSpec>
Implementations§
Source§impl StudySpec
impl StudySpec
Sourcepub fn observation_noise(&self) -> ObservationNoise
pub fn observation_noise(&self) -> ObservationNoise
Returns the enum value of observation_noise
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_observation_noise(&mut self, value: ObservationNoise)
pub fn set_observation_noise(&mut self, value: ObservationNoise)
Sets observation_noise
to the provided enum value.
Trait Implementations§
Source§impl Message for StudySpec
impl Message for StudySpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.impl StructuralPartialEq for StudySpec
Auto Trait Implementations§
impl Freeze for StudySpec
impl RefUnwindSafe for StudySpec
impl Send for StudySpec
impl Sync for StudySpec
impl Unpin for StudySpec
impl UnwindSafe for StudySpec
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> 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