#[non_exhaustive]pub struct ModelExplanation {
pub mean_attributions: Vec<Attribution>,
/* private fields */
}Expand description
Aggregated explanation metrics for a Model over a set of instances.
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.mean_attributions: Vec<Attribution>Output only. Aggregated attributions explaining the Model’s prediction outputs over the set of instances. The attributions are grouped by outputs.
For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining.
The baselineOutputValue, instanceOutputValue and featureAttributions fields are averaged over the test data.
NOTE: Currently AutoML tabular classification Models produce only one attribution, which averages attributions over all the classes it predicts. Attribution.approximation_error is not populated.
Implementations§
Source§impl ModelExplanation
impl ModelExplanation
pub fn new() -> Self
Sourcepub fn set_mean_attributions<T, V>(self, v: T) -> Self
pub fn set_mean_attributions<T, V>(self, v: T) -> Self
Sets the value of mean_attributions.
Trait Implementations§
Source§impl Clone for ModelExplanation
impl Clone for ModelExplanation
Source§fn clone(&self) -> ModelExplanation
fn clone(&self) -> ModelExplanation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more