pub(crate) fn skip_example(&self, d: DelimIter<'_>) -> bool {
        match &self.variant {
            EncoderVariant::TargetEncode(_) => false,
            EncoderVariant::SubmodularExpansion(e) => e.skip_example(d),
            EncoderVariant::SubmodularExpansionNoSplit(_) => false,
            EncoderVariant::FrequencyTruncation(_) => false,
            EncoderVariant::FieldAwareFrequencyTruncation(_) => false,
            EncoderVariant::SubmodularSort(e) => e.skip_example(d),
            EncoderVariant::NoSplitSubmodularSort(_) => false,
            EncoderVariant::Identity(_) => false,
        }
    }
/// Some encoders rely on the dictionary being initialized from a disjoint
/// subset of the data than what will be used for training, so this method
/// can be used to skip examples when writing examples back out.
Some encoders rely on the dictionary being initialized from a disjoint
subset of the data than what will be used for training, so this method
can be used to skip examples when writing examples back out.
Some encoders rely on the dictionary being initialized from a disjoint subset of the data than what will be used for training so this method can be used to skip examples when writing examples back out .
pub(crate) fn skip_example(&self, d: DelimIter<'_>) -> bool {
        match &self.variant {
            EncoderVariant::TargetEncode(_) => false,
            EncoderVariant::SubmodularExpansion(e) => e.skip_example(d),
            EncoderVariant::SubmodularExpansionNoSplit(_) => false,
            EncoderVariant::FrequencyTruncation(_) => false,
            EncoderVariant::FieldAwareFrequencyTruncation(_) => false,
            EncoderVariant::SubmodularSort(e) => e.skip_example(d),
            EncoderVariant::NoSplitSubmodularSort(_) => false,
            EncoderVariant::Identity(_) => false,
        }
    }
pub ( crate ) fn skip_example ( & self , d : DelimIter < ' _ > ) -> bool { match & self . variant { EncoderVariant :: TargetEncode ( _ ) => false , EncoderVariant :: SubmodularExpansion ( e ) => e . skip_example ( d ) , EncoderVariant :: SubmodularExpansionNoSplit ( _ ) => false , EncoderVariant :: FrequencyTruncation ( _ ) => false , EncoderVariant :: FieldAwareFrequencyTruncation ( _ ) => false , EncoderVariant :: SubmodularSort ( e ) => e . skip_example ( d ) , EncoderVariant :: NoSplitSubmodularSort ( _ ) => false , EncoderVariant :: Identity ( _ ) => false , } }
Some encoders rely on the dictionary being initialized from a disjoint
subset of the data than what will be used for training, so this method
can be used to skip examples when writing examples back out.
Some encoders rely on the dictionary being initialized from a disjoint subset of the data than what will be used for training so this method can be used to skip examples when writing examples back out .
&self
d
DelimIter<'_>
&self
d
DelimIter<'_>