Type Definition opencv::types::PtrOfLogisticRegression [−][src]
pub type PtrOfLogisticRegression = Ptr<dyn LogisticRegression>;
Implementations
Trait Implementations
Stores algorithm parameters in a file storage
simplified API for language bindings Stores algorithm parameters in a file storage Read more
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
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
Kind of regularization to be applied. See LogisticRegression::RegKinds. Read more
Kind of training method used. See LogisticRegression::Methods. Read more
Specifies the number of training samples taken in each step of Mini-Batch Gradient Descent. Will only be used if using LogisticRegression::MINI_BATCH training algorithm. It has to take values less than the total number of training samples. Read more
Termination criteria of the algorithm. Read more
Learning rate. Read more
Number of iterations. Read more
Kind of regularization to be applied. See LogisticRegression::RegKinds. Read more
Kind of training method used. See LogisticRegression::Methods. Read more
Specifies the number of training samples taken in each step of Mini-Batch Gradient Descent. Will only be used if using LogisticRegression::MINI_BATCH training algorithm. It has to take values less than the total number of training samples. Read more
Termination criteria of the algorithm. Read more
fn predict(
&self,
samples: &dyn ToInputArray,
results: &mut dyn ToOutputArray,
flags: i32
) -> Result<f32>
fn predict(
&self,
samples: &dyn ToInputArray,
results: &mut dyn ToOutputArray,
flags: i32
) -> Result<f32>
Predicts responses for input samples and returns a float type. Read more
This function returns the trained parameters arranged across rows. Read more
Trains the statistical model Read more
fn train(
&mut self,
samples: &dyn ToInputArray,
layout: i32,
responses: &dyn ToInputArray
) -> Result<bool>
fn train(
&mut self,
samples: &dyn ToInputArray,
layout: i32,
responses: &dyn ToInputArray
) -> Result<bool>
Trains the statistical model Read more
Returns the number of variables in training samples
Returns true if the model is trained
Returns true if the model is classifier
fn calc_error(
&self,
data: &Ptr<dyn TrainData>,
test: bool,
resp: &mut dyn ToOutputArray
) -> Result<f32>
fn calc_error(
&self,
data: &Ptr<dyn TrainData>,
test: bool,
resp: &mut dyn ToOutputArray
) -> Result<f32>
Computes error on the training or test dataset Read more
fn predict(
&self,
samples: &dyn ToInputArray,
results: &mut dyn ToOutputArray,
flags: i32
) -> Result<f32>
fn predict(
&self,
samples: &dyn ToInputArray,
results: &mut dyn ToOutputArray,
flags: i32
) -> Result<f32>
Predicts response(s) for the provided sample(s) Read more