[][src]Struct opencv::types::PtrOfLogisticRegression

pub struct PtrOfLogisticRegression { /* fields omitted */ }

Methods

impl PtrOfLogisticRegression[src]

Trait Implementations

impl Algorithm for PtrOfLogisticRegression[src]

fn clear(&mut self) -> Result<()>[src]

Clears the algorithm state

fn empty(&self) -> Result<bool>[src]

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

fn save(&self, filename: &str) -> Result<()>[src]

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more

fn get_default_name(&self) -> Result<String>[src]

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more

impl LogisticRegression for PtrOfLogisticRegression[src]

fn get_learning_rate(&self) -> Result<f64>[src]

@see setLearningRate

fn set_learning_rate(&mut self, val: f64) -> Result<()>[src]

@copybrief getLearningRate @see getLearningRate

fn get_iterations(&self) -> Result<i32>[src]

@see setIterations

fn set_iterations(&mut self, val: i32) -> Result<()>[src]

@copybrief getIterations @see getIterations

fn get_regularization(&self) -> Result<i32>[src]

@see setRegularization

fn set_regularization(&mut self, val: i32) -> Result<()>[src]

@copybrief getRegularization @see getRegularization

fn get_train_method(&self) -> Result<i32>[src]

@see setTrainMethod

fn set_train_method(&mut self, val: i32) -> Result<()>[src]

@copybrief getTrainMethod @see getTrainMethod

fn get_mini_batch_size(&self) -> Result<i32>[src]

@see setMiniBatchSize

fn set_mini_batch_size(&mut self, val: i32) -> Result<()>[src]

@copybrief getMiniBatchSize @see getMiniBatchSize

fn get_term_criteria(&self) -> Result<TermCriteria>[src]

@see setTermCriteria

fn set_term_criteria(&mut self, val: &TermCriteria) -> Result<()>[src]

@copybrief getTermCriteria @see getTermCriteria

fn predict(&self, samples: &Mat, results: &mut Mat, flags: i32) -> Result<f32>[src]

Predicts responses for input samples and returns a float type. Read more

fn get_learnt_thetas(&self) -> Result<Mat>[src]

This function returns the trained parameters arranged across rows. Read more

impl StatModel for PtrOfLogisticRegression[src]

fn get_var_count(&self) -> Result<i32>[src]

Returns the number of variables in training samples

fn empty(&self) -> Result<bool>[src]

fn is_trained(&self) -> Result<bool>[src]

Returns true if the model is trained

fn is_classifier(&self) -> Result<bool>[src]

Returns true if the model is classifier

fn train_with_data(
    &mut self,
    train_data: &PtrOfTrainData,
    flags: i32
) -> Result<bool>
[src]

Trains the statistical model Read more

fn train(&mut self, samples: &Mat, layout: i32, responses: &Mat) -> Result<bool>[src]

Trains the statistical model Read more

fn calc_error(
    &self,
    data: &PtrOfTrainData,
    test: bool,
    resp: &mut Mat
) -> Result<f32>
[src]

Computes error on the training or test dataset Read more

fn predict(&self, samples: &Mat, results: &mut Mat, flags: i32) -> Result<f32>[src]

Predicts response(s) for the provided sample(s) Read more

impl Send for PtrOfLogisticRegression[src]

impl Drop for PtrOfLogisticRegression[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]