#[non_exhaustive]pub struct AggregationOutput {
pub dataset: Option<EvaluationDataset>,
pub aggregation_results: Vec<AggregationResult>,
/* private fields */
}Available on crate feature
gen-ai-tuning-service only.Expand description
The aggregation result for the entire dataset and all metrics.
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.dataset: Option<EvaluationDataset>The dataset used for evaluation & aggregation.
aggregation_results: Vec<AggregationResult>One AggregationResult per metric.
Implementations§
Source§impl AggregationOutput
impl AggregationOutput
pub fn new() -> Self
Sourcepub fn set_dataset<T>(self, v: T) -> Selfwhere
T: Into<EvaluationDataset>,
pub fn set_dataset<T>(self, v: T) -> Selfwhere
T: Into<EvaluationDataset>,
Sourcepub fn set_or_clear_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<EvaluationDataset>,
pub fn set_or_clear_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<EvaluationDataset>,
Sourcepub fn set_aggregation_results<T, V>(self, v: T) -> Self
pub fn set_aggregation_results<T, V>(self, v: T) -> Self
Sets the value of aggregation_results.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::AggregationResult;
let x = AggregationOutput::new()
.set_aggregation_results([
AggregationResult::default()/* use setters */,
AggregationResult::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for AggregationOutput
impl Clone for AggregationOutput
Source§fn clone(&self) -> AggregationOutput
fn clone(&self) -> AggregationOutput
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 AggregationOutput
impl Debug for AggregationOutput
Source§impl Default for AggregationOutput
impl Default for AggregationOutput
Source§fn default() -> AggregationOutput
fn default() -> AggregationOutput
Returns the “default value” for a type. Read more
Source§impl Message for AggregationOutput
impl Message for AggregationOutput
Source§impl PartialEq for AggregationOutput
impl PartialEq for AggregationOutput
impl StructuralPartialEq for AggregationOutput
Auto Trait Implementations§
impl Freeze for AggregationOutput
impl RefUnwindSafe for AggregationOutput
impl Send for AggregationOutput
impl Sync for AggregationOutput
impl Unpin for AggregationOutput
impl UnsafeUnpin for AggregationOutput
impl UnwindSafe for AggregationOutput
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