pub struct IncrementalLogisticRegression { /* private fields */ }Implementations§
Source§impl IncrementalLogisticRegression
impl IncrementalLogisticRegression
pub fn new( schedule: LearningRateSchedule, l2_penalty: f64, strategy: MulticlassStrategy, ) -> Self
Sourcepub fn strategy(&self) -> &MulticlassStrategy
pub fn strategy(&self) -> &MulticlassStrategy
Returns the multiclass strategy configured for this model.
Sourcepub fn partial_fit_labels(
&mut self,
batch_x: &Array2<f64>,
batch_y: &Array1<usize>,
) -> Result<(), IncrementalError>
pub fn partial_fit_labels( &mut self, batch_x: &Array2<f64>, batch_y: &Array1<usize>, ) -> Result<(), IncrementalError>
Fits a mini-batch with integer target labels (multiclass/binary).
Sourcepub fn predict_proba(
&self,
x: &Array2<f64>,
) -> Result<Array2<f64>, IncrementalError>
pub fn predict_proba( &self, x: &Array2<f64>, ) -> Result<Array2<f64>, IncrementalError>
Predict class probabilities for input features.
Sourcepub fn predict_labels(
&self,
x: &Array2<f64>,
) -> Result<Array1<usize>, IncrementalError>
pub fn predict_labels( &self, x: &Array2<f64>, ) -> Result<Array1<usize>, IncrementalError>
Predict discrete class labels.
Trait Implementations§
Source§impl IncrementalSupervisedEstimator for IncrementalLogisticRegression
impl IncrementalSupervisedEstimator for IncrementalLogisticRegression
Source§fn partial_fit(
&mut self,
batch_x: &Array2<f64>,
batch_y: &Array1<f64>,
) -> Result<(), IncrementalError>
fn partial_fit( &mut self, batch_x: &Array2<f64>, batch_y: &Array1<f64>, ) -> Result<(), IncrementalError>
Satisfies trait for continuous 0.0/1.0 targets in binary classification.
Auto Trait Implementations§
impl Freeze for IncrementalLogisticRegression
impl RefUnwindSafe for IncrementalLogisticRegression
impl Send for IncrementalLogisticRegression
impl Sync for IncrementalLogisticRegression
impl Unpin for IncrementalLogisticRegression
impl UnsafeUnpin for IncrementalLogisticRegression
impl UnwindSafe for IncrementalLogisticRegression
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