pub struct MultiScaleModel {
pub config: MultiScaleConfig,
/* private fields */
}Expand description
Multi-Scale Temporal Model that processes signals at multiple resolutions.
Fields§
§config: MultiScaleConfigModel configuration
Implementations§
Source§impl MultiScaleModel
impl MultiScaleModel
Sourcepub fn new(config: MultiScaleConfig) -> ModelResult<Self>
pub fn new(config: MultiScaleConfig) -> ModelResult<Self>
Create a new multi-scale model
Sourcepub fn small() -> ModelResult<Self>
pub fn small() -> ModelResult<Self>
Small preset: 3 scales at [1, 4, 16], input/output dim 1
Sourcepub fn base() -> ModelResult<Self>
pub fn base() -> ModelResult<Self>
Base preset: 4 scales at [1, 2, 8, 32], input/output dim 1
Trait Implementations§
Source§impl AutoregressiveModel for MultiScaleModel
impl AutoregressiveModel for MultiScaleModel
Get the model’s hidden dimension
Source§fn num_layers(&self) -> usize
fn num_layers(&self) -> usize
Get number of layers
Source§fn model_type(&self) -> ModelType
fn model_type(&self) -> ModelType
Get model type identifier
Source§fn get_states(&self) -> Vec<HiddenState>
fn get_states(&self) -> Vec<HiddenState>
Get current hidden states for all layers
Source§fn set_states(&mut self, states: Vec<HiddenState>) -> ModelResult<()>
fn set_states(&mut self, states: Vec<HiddenState>) -> ModelResult<()>
Set hidden states for all layers
Source§fn load_weights_json(&mut self, _path: &Path) -> ModelResult<()>
fn load_weights_json(&mut self, _path: &Path) -> ModelResult<()>
Load weights from a JSON file (
HashMap<String, Vec<f32>> format). Read moreSource§fn save_weights_json(&self, _path: &Path) -> ModelResult<()>
fn save_weights_json(&self, _path: &Path) -> ModelResult<()>
Save weights to a JSON file (
HashMap<String, Vec<f32>> format). Read moreSource§impl SignalPredictor for MultiScaleModel
impl SignalPredictor for MultiScaleModel
Auto Trait Implementations§
impl Freeze for MultiScaleModel
impl RefUnwindSafe for MultiScaleModel
impl Send for MultiScaleModel
impl Sync for MultiScaleModel
impl Unpin for MultiScaleModel
impl UnsafeUnpin for MultiScaleModel
impl UnwindSafe for MultiScaleModel
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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