#[non_exhaustive]pub struct ModelEvaluationSlice {
pub name: String,
pub slice: Option<Slice>,
pub metrics_schema_uri: String,
pub metrics: Option<Value>,
pub create_time: Option<Timestamp>,
pub model_explanation: Option<ModelExplanation>,
/* private fields */
}Expand description
A collection of metrics calculated by comparing Model’s predictions on a slice of the test data against ground truth annotations.
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. The resource name of the ModelEvaluationSlice.
slice: Option<Slice>Output only. The slice of the test data that is used to evaluate the Model.
metrics_schema_uri: StringOutput only. Points to a YAML file stored on Google Cloud Storage describing the metrics of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 Schema Object.
metrics: Option<Value>Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in metrics_schema_uri
create_time: Option<Timestamp>Output only. Timestamp when this ModelEvaluationSlice was created.
model_explanation: Option<ModelExplanation>Output only. Aggregated explanation metrics for the Model’s prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
Implementations§
Source§impl ModelEvaluationSlice
impl ModelEvaluationSlice
pub fn new() -> Self
Sourcepub fn set_metrics_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_metrics_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of metrics_schema_uri.
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_model_explanation<T: Into<Option<ModelExplanation>>>(
self,
v: T,
) -> Self
pub fn set_model_explanation<T: Into<Option<ModelExplanation>>>( self, v: T, ) -> Self
Sets the value of model_explanation.
Trait Implementations§
Source§impl Clone for ModelEvaluationSlice
impl Clone for ModelEvaluationSlice
Source§fn clone(&self) -> ModelEvaluationSlice
fn clone(&self) -> ModelEvaluationSlice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more