Class

com.github.rzykov.fastml4j.classification

LogisticRegression

Related Doc: package classification

Permalink

class LogisticRegression extends ClassificationModel with Intercept

Logistic regression. Creates a class of the logistic regression model

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LogisticRegression
  2. Intercept
  3. ClassificationModel
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LogisticRegression(lambdaL2: Float, alpha: Float = 0.01f, maxIterations: Int = 1000, stohasticBatchSize: Int = 100, optimizerType: String = "GradientDescent", eps: Float = 1e-6f, calcIntercept: Boolean = true)

    Permalink

    lambdaL2

    - regularisation parameter for L2

    alpha

    - step parameter for optimizer

    maxIterations

    - max iterations for optimizer

    stohasticBatchSize

    - batch size, valid only for stohastic gradient descent

    optimizerType

    - which optimizer to use

    eps

    - minimum change for loss function, used by optimizer

    calcIntercept

    - include fitting of the intercept

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val alpha: Float

    Permalink

    - step parameter for optimizer

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val calcIntercept: Boolean

    Permalink

    - include fitting of the intercept

    - include fitting of the intercept

    Definition Classes
    LogisticRegressionIntercept
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def dataSetWithIntercept(dataSet: DataSet): DataSet

    Permalink
    Definition Classes
    Intercept
  9. val eps: Float

    Permalink

    - minimum change for loss function, used by optimizer

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def extractIntercept(weights: INDArray): Float

    Permalink
    Definition Classes
    Intercept
  13. def extractWeights(weights: INDArray): INDArray

    Permalink
    Definition Classes
    Intercept
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fit(dataSet: DataSet, initWeights: Option[INDArray] = None): Unit

    Permalink

    fit weights to the data provided by the implementation of the model

    fit weights to the data provided by the implementation of the model

    dataSet

    input DataSet with features and labels

    initWeights

    initial weights, None if omitted

    Definition Classes
    LogisticRegressionClassificationModel
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. var intercept: Float

    Permalink
    Definition Classes
    Intercept
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val lambdaL2: Float

    Permalink

    - regularisation parameter for L2

  21. var losses: Seq[Float]

    Permalink

    contains changes of the loss function value during optimisation at every step

    contains changes of the loss function value during optimisation at every step

    Definition Classes
    ClassificationModel
  22. val maxIterations: Int

    Permalink

    - max iterations for optimizer

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val optimizerType: String

    Permalink

    - which optimizer to use

  27. def predict(inputVector: INDArray): Float

    Permalink

    predict the probability of positive class for one vector of data

    predict the probability of positive class for one vector of data

    inputVector

    INDarray data vector

    returns

    probability of positive class

    Definition Classes
    LogisticRegressionClassificationModel
  28. def predictClass(inputVector: INDArray): Float

    Permalink

    predict class (1 or 0) for one vector of data

    predict class (1 or 0) for one vector of data

    inputVector

    INDarray data vector

    returns

    predicted class

    Definition Classes
    LogisticRegressionClassificationModel
  29. val stohasticBatchSize: Int

    Permalink

    - batch size, valid only for stohastic gradient descent

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. var weights: INDArray

    Permalink

    contains weights after the fitting the model

    contains weights after the fitting the model

    Definition Classes
    ClassificationModel

Inherited from Intercept

Inherited from ClassificationModel

Inherited from AnyRef

Inherited from Any

Ungrouped