#[non_exhaustive]pub struct EvaluationConfig {
pub metrics: Vec<Metric>,
pub output_config: Option<OutputConfig>,
pub autorater_config: Option<AutoraterConfig>,
pub inference_generation_config: Option<GenerationConfig>,
/* private fields */
}Available on crate feature
gen-ai-tuning-service only.Expand description
Evaluation Config for Tuning Job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metrics: Vec<Metric>Required. The metrics used for evaluation.
output_config: Option<OutputConfig>Required. Config for evaluation output.
autorater_config: Option<AutoraterConfig>Optional. Autorater config for evaluation.
inference_generation_config: Option<GenerationConfig>Optional. Configuration options for inference generation and outputs. If not set, default generation parameters are used.
Implementations§
Source§impl EvaluationConfig
impl EvaluationConfig
pub fn new() -> Self
Sourcepub fn set_metrics<T, V>(self, v: T) -> Self
pub fn set_metrics<T, V>(self, v: T) -> Self
Sourcepub fn set_output_config<T>(self, v: T) -> Selfwhere
T: Into<OutputConfig>,
pub fn set_output_config<T>(self, v: T) -> Selfwhere
T: Into<OutputConfig>,
Sets the value of output_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::OutputConfig;
let x = EvaluationConfig::new().set_output_config(OutputConfig::default()/* use setters */);Sourcepub fn set_or_clear_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputConfig>,
pub fn set_or_clear_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputConfig>,
Sets or clears the value of output_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::OutputConfig;
let x = EvaluationConfig::new().set_or_clear_output_config(Some(OutputConfig::default()/* use setters */));
let x = EvaluationConfig::new().set_or_clear_output_config(None::<OutputConfig>);Sourcepub fn set_autorater_config<T>(self, v: T) -> Selfwhere
T: Into<AutoraterConfig>,
pub fn set_autorater_config<T>(self, v: T) -> Selfwhere
T: Into<AutoraterConfig>,
Sets the value of autorater_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::AutoraterConfig;
let x = EvaluationConfig::new().set_autorater_config(AutoraterConfig::default()/* use setters */);Sourcepub fn set_or_clear_autorater_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoraterConfig>,
pub fn set_or_clear_autorater_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoraterConfig>,
Sets or clears the value of autorater_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::AutoraterConfig;
let x = EvaluationConfig::new().set_or_clear_autorater_config(Some(AutoraterConfig::default()/* use setters */));
let x = EvaluationConfig::new().set_or_clear_autorater_config(None::<AutoraterConfig>);Sourcepub fn set_inference_generation_config<T>(self, v: T) -> Selfwhere
T: Into<GenerationConfig>,
pub fn set_inference_generation_config<T>(self, v: T) -> Selfwhere
T: Into<GenerationConfig>,
Sets the value of inference_generation_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::GenerationConfig;
let x = EvaluationConfig::new().set_inference_generation_config(GenerationConfig::default()/* use setters */);Sourcepub fn set_or_clear_inference_generation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GenerationConfig>,
pub fn set_or_clear_inference_generation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GenerationConfig>,
Sets or clears the value of inference_generation_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::GenerationConfig;
let x = EvaluationConfig::new().set_or_clear_inference_generation_config(Some(GenerationConfig::default()/* use setters */));
let x = EvaluationConfig::new().set_or_clear_inference_generation_config(None::<GenerationConfig>);Trait Implementations§
Source§impl Clone for EvaluationConfig
impl Clone for EvaluationConfig
Source§fn clone(&self) -> EvaluationConfig
fn clone(&self) -> EvaluationConfig
Returns a duplicate 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 EvaluationConfig
impl Debug for EvaluationConfig
Source§impl Default for EvaluationConfig
impl Default for EvaluationConfig
Source§fn default() -> EvaluationConfig
fn default() -> EvaluationConfig
Returns the “default value” for a type. Read more
Source§impl Message for EvaluationConfig
impl Message for EvaluationConfig
Source§impl PartialEq for EvaluationConfig
impl PartialEq for EvaluationConfig
impl StructuralPartialEq for EvaluationConfig
Auto Trait Implementations§
impl Freeze for EvaluationConfig
impl RefUnwindSafe for EvaluationConfig
impl Send for EvaluationConfig
impl Sync for EvaluationConfig
impl Unpin for EvaluationConfig
impl UnsafeUnpin for EvaluationConfig
impl UnwindSafe for EvaluationConfig
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