Package org.opencv.ml

Class LogisticRegression


  • public class LogisticRegression
    extends StatModel
    • Constructor Detail

      • LogisticRegression

        protected LogisticRegression​(long addr)
    • Method Detail

      • get_learnt_thetas

        public Mat get_learnt_thetas()
      • getLearningRate

        public double getLearningRate()
      • predict

        public float predict​(Mat samples,
                             Mat results,
                             int flags)
        Overrides:
        predict in class StatModel
      • getIterations

        public int getIterations()
      • getMiniBatchSize

        public int getMiniBatchSize()
      • getRegularization

        public int getRegularization()
      • getTrainMethod

        public int getTrainMethod()
      • setIterations

        public void setIterations​(int val)
      • setLearningRate

        public void setLearningRate​(double val)
      • setMiniBatchSize

        public void setMiniBatchSize​(int val)
      • setRegularization

        public void setRegularization​(int val)
      • setTermCriteria

        public void setTermCriteria​(TermCriteria val)
      • setTrainMethod

        public void setTrainMethod​(int val)