pub enum VisualizationMethod {
ActivationMaximization {
target_layer: String,
target_unit: Option<usize>,
num_iterations: usize,
learning_rate: f64,
},
DeepDream {
target_layer: String,
num_iterations: usize,
learning_rate: f64,
amplify_factor: f64,
},
FeatureInversion {
target_layer: String,
regularization_weight: f64,
},
ClassActivationMapping {
target_layer: String,
target_class: usize,
},
NetworkDissection {
concept_data: Vec<ArrayD<f32>>,
concept_labels: Vec<String>,
},
}
Expand description
Feature visualization method
Variants§
ActivationMaximization
Activation maximization
Fields
DeepDream
Deep dream
Fields
FeatureInversion
Feature inversion
Fields
ClassActivationMapping
Class Activation Mapping (CAM)
NetworkDissection
Network dissection for concept visualization
Trait Implementations§
Source§impl Clone for VisualizationMethod
impl Clone for VisualizationMethod
Source§fn clone(&self) -> VisualizationMethod
fn clone(&self) -> VisualizationMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VisualizationMethod
impl Debug for VisualizationMethod
Source§impl PartialEq for VisualizationMethod
impl PartialEq for VisualizationMethod
impl StructuralPartialEq for VisualizationMethod
Auto Trait Implementations§
impl Freeze for VisualizationMethod
impl RefUnwindSafe for VisualizationMethod
impl Send for VisualizationMethod
impl Sync for VisualizationMethod
impl Unpin for VisualizationMethod
impl UnwindSafe for VisualizationMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more