Struct owlyshield_ransom::predictions::prediction::input_tensors::VecvecCapped    [−][src]
pub struct VecvecCapped<T> {
    pub capacity_cols: usize,
    pub capacity_rows: usize,
    elems: VecDeque<Vec<T>>,
}Expand description
A matrix with fixed_size to feed the model’s input tensors, because too long sequences (> 1000 steps) would deserve the predictions with RNN, unless tbtt is used.
For example, with capacity_cols = 2 and capacity_rows = 3, after three steps
| Timestep | Feature 1 | Feature 2 | 
|---|---|---|
| 1 | a1 | b1 | 
| 2 | a2 | b2 | 
| 3 | a3 | b3 | 
Then after a fourth step was added:
| Timestep | Feature 1 | Feature 2 | 
|---|---|---|
| 2 | a2 | b2 | 
| 3 | a3 | b3 | 
| 4 | a4 | b4 | 
Fields
capacity_cols: usizeNumber of features, equivalent to input_tensor.dim[1]
capacity_rows: usizeMax number of timesteps.
elems: VecDeque<Vec<T>>Implementations
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<T> RefUnwindSafe for VecvecCapped<T> where
    T: RefUnwindSafe, 
impl<T> Send for VecvecCapped<T> where
    T: Send, 
impl<T> Sync for VecvecCapped<T> where
    T: Sync, 
impl<T> Unpin for VecvecCapped<T> where
    T: Unpin, 
impl<T> UnwindSafe for VecvecCapped<T> where
    T: UnwindSafe, 
Blanket Implementations
Mutably borrows from an owned value. Read more
