pub struct FeatureExtractorWrapper { /* private fields */ }Expand description
Wrapper for feature extraction functionality
Implementations§
Source§impl FeatureExtractorWrapper
impl FeatureExtractorWrapper
pub fn new(extractor: &PretrainedModel) -> Self
Trait Implementations§
Source§impl Debug for FeatureExtractorWrapper
impl Debug for FeatureExtractorWrapper
Source§impl PipelinePredictor for FeatureExtractorWrapper
impl PipelinePredictor for FeatureExtractorWrapper
Source§fn fit(
&mut self,
_x: &ArrayView2<'_, Float>,
_y: &ArrayView1<'_, Float>,
) -> SklResult<()>
fn fit( &mut self, _x: &ArrayView2<'_, Float>, _y: &ArrayView1<'_, Float>, ) -> SklResult<()>
Fit the predictor to data
Source§fn predict(&self, x: &ArrayView2<'_, Float>) -> SklResult<Array1<f64>>
fn predict(&self, x: &ArrayView2<'_, Float>) -> SklResult<Array1<f64>>
Predict on the transformed data
Source§fn clone_predictor(&self) -> Box<dyn PipelinePredictor>
fn clone_predictor(&self) -> Box<dyn PipelinePredictor>
Clone the predictor
Auto Trait Implementations§
impl Freeze for FeatureExtractorWrapper
impl !RefUnwindSafe for FeatureExtractorWrapper
impl Send for FeatureExtractorWrapper
impl Sync for FeatureExtractorWrapper
impl Unpin for FeatureExtractorWrapper
impl !UnwindSafe for FeatureExtractorWrapper
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> 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