pub struct TotoModel {
pub config: InferConfig,
/* private fields */
}Fields§
§config: InferConfigImplementations§
Source§impl TotoModel
impl TotoModel
Sourcepub fn builder(gguf_path: impl Into<PathBuf>) -> TotoModelBuilder
pub fn builder(gguf_path: impl Into<PathBuf>) -> TotoModelBuilder
Start building a TotoModel — see TotoModelBuilder.
pub fn load(gguf_path: &Path, config: InferConfig) -> Result<Self>
Sourcepub fn forecast(
&self,
target: &[Vec<f32>],
mask: &[Vec<bool>],
prediction_length: usize,
) -> Result<Vec<Vec<Vec<f32>>>>
pub fn forecast( &self, target: &[Vec<f32>], mask: &[Vec<bool>], prediction_length: usize, ) -> Result<Vec<Vec<Vec<f32>>>>
Forecast from context.
target[n_var][ctx_len] — observed values.
mask[n_var][ctx_len] — true for valid observations.
Returns quantiles[9][n_var][prediction_length].
Toto is a full-context model: the prediction region is appended to the context as masked (all-zero) patches before the forward pass. The model attends over the full sequence and outputs quantiles for the future region.
Trait Implementations§
Source§impl Forecaster for TotoModel
impl Forecaster for TotoModel
type Config = InferConfig
fn load(gguf_path: &Path, config: InferConfig) -> Result<Self>
Auto Trait Implementations§
impl !Freeze for TotoModel
impl !RefUnwindSafe for TotoModel
impl !UnwindSafe for TotoModel
impl Send for TotoModel
impl Sync for TotoModel
impl Unpin for TotoModel
impl UnsafeUnpin for TotoModel
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