pub struct InputEncoder { /* private fields */ }Expand description
Input encoder for time series data.
Implementations§
Source§impl InputEncoder
impl InputEncoder
Sourcepub fn new(method: EncodingMethod, output_dim: usize) -> Self
pub fn new(method: EncodingMethod, output_dim: usize) -> Self
Create a new input encoder.
Sourcepub fn normalize(&self, data: &Array2<f64>) -> QearResult<Array2<f64>>
pub fn normalize(&self, data: &Array2<f64>) -> QearResult<Array2<f64>>
Normalize data using fitted statistics.
Sourcepub fn encode_batch(&self, inputs: &Array2<f64>) -> QearResult<Array2<f64>>
pub fn encode_batch(&self, inputs: &Array2<f64>) -> QearResult<Array2<f64>>
Encode a batch of samples.
Sourcepub fn encoded_dim(&self, input_dim: usize) -> usize
pub fn encoded_dim(&self, input_dim: usize) -> usize
Get the encoded dimension for a given input dimension.
Sourcepub fn method(&self) -> EncodingMethod
pub fn method(&self) -> EncodingMethod
Get the encoding method.
Trait Implementations§
Source§impl Clone for InputEncoder
impl Clone for InputEncoder
Source§fn clone(&self) -> InputEncoder
fn clone(&self) -> InputEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InputEncoder
impl RefUnwindSafe for InputEncoder
impl Send for InputEncoder
impl Sync for InputEncoder
impl Unpin for InputEncoder
impl UnwindSafe for InputEncoder
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