Struct google_api_proto::google::ai::generativelanguage::v1beta::Hyperparameters
source · pub struct Hyperparameters {
pub epoch_count: Option<i32>,
pub batch_size: Option<i32>,
pub learning_rate_option: Option<LearningRateOption>,
}
Expand description
Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance
Fields§
§epoch_count: Option<i32>
Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used.
batch_size: Option<i32>
Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples.
learning_rate_option: Option<LearningRateOption>
Options for specifying learning rate during tuning.
Implementations§
source§impl Hyperparameters
impl Hyperparameters
sourcepub fn epoch_count(&self) -> i32
pub fn epoch_count(&self) -> i32
Returns the value of epoch_count
, or the default value if epoch_count
is unset.
sourcepub fn batch_size(&self) -> i32
pub fn batch_size(&self) -> i32
Returns the value of batch_size
, or the default value if batch_size
is unset.
Trait Implementations§
source§impl Clone for Hyperparameters
impl Clone for Hyperparameters
source§fn clone(&self) -> Hyperparameters
fn clone(&self) -> Hyperparameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Hyperparameters
impl Debug for Hyperparameters
source§impl Default for Hyperparameters
impl Default for Hyperparameters
source§impl Message for Hyperparameters
impl Message for Hyperparameters
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Hyperparameters
impl PartialEq for Hyperparameters
source§fn eq(&self, other: &Hyperparameters) -> bool
fn eq(&self, other: &Hyperparameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Hyperparameters
impl StructuralPartialEq for Hyperparameters
Auto Trait Implementations§
impl Freeze for Hyperparameters
impl RefUnwindSafe for Hyperparameters
impl Send for Hyperparameters
impl Sync for Hyperparameters
impl Unpin for Hyperparameters
impl UnwindSafe for Hyperparameters
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Wrap the input message
T
in a tonic::Request