pub fn sum(&self) -> ActivationT {
        match self {
            Features::Dense(da) => da.sum(),
            Features::Sparse(sa) => sa.activations.values().sum(),
        }
    }
/// Returns the sum of all activations in the feature vector.
Returns the sum of all activations in the feature vector.
Returns the sum of all activations in the feature vector .
pub fn sum(&self) -> ActivationT {
        match self {
            Features::Dense(da) => da.sum(),
            Features::Sparse(sa) => sa.activations.values().sum(),
        }
    }
pub fn sum ( & self ) -> ActivationT { match self { Features :: Dense ( da ) => da . sum ( ) , Features :: Sparse ( sa ) => sa . activations . values ( ) . sum ( ) , } }
Returns the sum of all activations in the feature vector.
Returns the sum of all activations in the feature vector .
&self
&self