pub struct MomentModel { /* private fields */ }Implementations§
Source§impl MomentModel
impl MomentModel
pub fn load(gguf_path: &Path, config: MomentConfig) -> Result<Self>
Sourcepub fn forecast(&self, context: &[f32], horizon: usize) -> Result<Vec<f32>>
pub fn forecast(&self, context: &[f32], horizon: usize) -> Result<Vec<f32>>
Zero-shot forecasting via single-pass masked inpainting.
Appends n_forecast_patches zero-filled future patches after the 64
context patches and runs ONE T5 encoder pass. The bidirectional encoder
fills the masked future positions using the real context, mirroring
the masking pretraining task. Head applied to future positions gives
the forecast.
Trait Implementations§
Source§impl Forecaster for MomentModel
impl Forecaster for MomentModel
Auto Trait Implementations§
impl !Freeze for MomentModel
impl !RefUnwindSafe for MomentModel
impl !UnwindSafe for MomentModel
impl Send for MomentModel
impl Sync for MomentModel
impl Unpin for MomentModel
impl UnsafeUnpin for MomentModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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