pub struct DensePredictor { /* private fields */ }Expand description
Dense predictor that returns all neurons (for baseline comparison).
Implementations§
Trait Implementations§
Source§impl Predictor for DensePredictor
impl Predictor for DensePredictor
Source§fn predict(&self, _input: &[f32]) -> Result<Vec<usize>>
fn predict(&self, _input: &[f32]) -> Result<Vec<usize>>
Predict active neurons for the given input. Read more
Source§fn calibrate(
&mut self,
_samples: &[Vec<f32>],
_activations: &[Vec<f32>],
) -> Result<()>
fn calibrate( &mut self, _samples: &[Vec<f32>], _activations: &[Vec<f32>], ) -> Result<()>
Calibrate the predictor using sample data. Read more
Source§fn stats(&self) -> PredictorStats
fn stats(&self) -> PredictorStats
Get predictor statistics.
Auto Trait Implementations§
impl Freeze for DensePredictor
impl RefUnwindSafe for DensePredictor
impl Send for DensePredictor
impl Sync for DensePredictor
impl Unpin for DensePredictor
impl UnwindSafe for DensePredictor
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