pub enum RateBackend {
Show 14 variants
RosaPlus,
Match {
hash_bits: usize,
min_len: usize,
max_len: usize,
base_mix: f64,
confidence_scale: f64,
},
SparseMatch {
hash_bits: usize,
min_len: usize,
max_len: usize,
gap_min: usize,
gap_max: usize,
base_mix: f64,
confidence_scale: f64,
},
Ppmd {
order: usize,
memory_mb: usize,
},
Mamba {
model: Arc<Model>,
},
MambaMethod {
method: String,
},
Rwkv7 {
model: Arc<Model>,
},
Rwkv7Method {
method: String,
},
Zpaq {
method: String,
},
Mixture {
spec: Arc<MixtureSpec>,
},
Particle {
spec: Arc<ParticleSpec>,
},
Calibrated {
spec: Arc<CalibratedSpec>,
},
Ctw {
depth: usize,
},
FacCtw {
base_depth: usize,
num_percept_bits: usize,
encoding_bits: usize,
},
}Expand description
Sequential entropy/rate backend used by context-aware metrics.
Variants§
RosaPlus
ROSA+ suffix-automaton estimator.
Match
Local contiguous match predictor.
Fields
SparseMatch
Sparse/gapped local match predictor.
Fields
Ppmd
Pure-Rust bounded-memory PPMD-style model.
Mamba
Mamba model loaded from explicit weights.
MambaMethod
Mamba method string (e.g. file:... or cfg:...[;policy:...]) resolved lazily.
Rwkv7
RWKV7 model loaded from explicit weights.
Rwkv7Method
RWKV7 method string (e.g. file:... or cfg:...[;policy:...]) resolved lazily.
Zpaq
ZPAQ compression-based rate model (streamable methods only).
Mixture
Online mixture over rate-model experts (Bayes, fading Bayes, switching, MDL).
Fields
spec: Arc<MixtureSpec>Mixture expert/runtime specification.
Particle
Particle-latent filter ensemble.
Fields
spec: Arc<ParticleSpec>Particle filter specification.
Calibrated
Calibrated wrapper over another bytewise backend.
Fields
spec: Arc<CalibratedSpec>Calibration specification.
Ctw
Action-Conditional CTW (single context tree).
FacCtw
Factorized Action-Conditional CTW (k trees for k-bit percepts).
Trait Implementations§
Source§impl Clone for RateBackend
impl Clone for RateBackend
Source§fn clone(&self) -> RateBackend
fn clone(&self) -> RateBackend
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RateBackend
impl RefUnwindSafe for RateBackend
impl Send for RateBackend
impl Sync for RateBackend
impl Unpin for RateBackend
impl UnsafeUnpin for RateBackend
impl UnwindSafe for RateBackend
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
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>
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>
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