pub fn sparse<I>(dim: usize, activations: I) -> Features
    where
        I: IntoIterator<Item = (IndexT, ActivationT)>,
    {
        Features::Sparse(SparseActivations {
            dim,
            activations: activations.into_iter().collect(),
        })
    }
/// Construct a `Sparse` feature vector with given dimensionality from an
/// iterable collection of feature-activation pairs.
Construct a `Sparse` feature vector with given dimensionality from an
iterable collection of feature-activation pairs.
Construct a ` Sparse ` feature vector with given dimensionality from an iterable collection of feature - activation pairs .
pub fn sparse<I>(dim: usize, activations: I) -> Features
    where
        I: IntoIterator<Item = (IndexT, ActivationT)>,
    {
        Features::Sparse(SparseActivations {
            dim,
            activations: activations.into_iter().collect(),
        })
    }
pub fn sparse < I > ( dim : usize , activations : I ) -> Features where I : IntoIterator < Item = ( IndexT , ActivationT ) > , { Features :: Sparse ( SparseActivations { dim , activations : activations . into_iter ( ) . collect ( ) , } ) }
Construct a `Sparse` feature vector with given dimensionality from an
iterable collection of feature-activation pairs.
Construct a ` Sparse ` feature vector with given dimensionality from an iterable collection of feature - activation pairs .
dim
usize
activations
I
dim
usize
activations
I