Trait

com.github.gradientgmm.optim

Optimizable

Related Doc: package optim

Permalink

trait Optimizable extends Serializable

Contains basic functionality for an object that can be modified by Optimizer

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Optimizable
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val optim: Optimizer

    Permalink

    optimizer object

    optimizer object

    Attributes
    protected
  2. abstract def step(data: RDD[Vector]): Optimizable.this.type

    Permalink

    Perform a gradient-based optimization step

    Perform a gradient-based optimization step

    data

    Data to fit the model

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var batchSize: Option[Int]

    Permalink

    Minibatch size for each iteration in the ascent procedure.

    Minibatch size for each iteration in the ascent procedure. If None, it performs full-batch optimization

    Attributes
    protected
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var converged: Boolean

    Permalink

    convergence flag for local optimisation

    convergence flag for local optimisation

    Attributes
    protected
  8. var convergenceTol: Double

    Permalink

    Error tolerance in log-likelihood for the stopping criteria

    Error tolerance in log-likelihood for the stopping criteria

    Attributes
    protected
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getBatchSize: Option[Int]

    Permalink
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getConvergenceTol: Double

    Permalink
  15. def getLoss: Double

    Permalink
  16. def getMaxIter: Int

    Permalink
  17. def getOptim: Optimizer

    Permalink
  18. def getSeed: Long

    Permalink
  19. implicit var globalIterCounter: Long

    Permalink

    this prevents the seed from repeating every time step() is called which would cause the same samples being taken

    this prevents the seed from repeating every time step() is called which would cause the same samples being taken

    Attributes
    protected
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. var lossValue: Double

    Permalink

    Current loss value

    Current loss value

    Attributes
    protected
  23. implicit val matrixOps: ParameterOperations[DenseMatrix[Double]]

    Permalink
    Attributes
    protected
  24. var maxIter: Int

    Permalink

    Maximum number of iterations allowed

    Maximum number of iterations allowed

    Attributes
    protected
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. var regularizer: Option[Regularizer]

    Permalink

    Optional regularization term

    Optional regularization term

    Attributes
    protected
  29. var seed: Long

    Permalink

    random seed for mini-batch sampling

    random seed for mini-batch sampling

    Attributes
    protected
  30. def setBatchSize(n: Option[Int]): Optimizable.this.type

    Permalink
  31. def setBatchSize(n: Int): Optimizable.this.type

    Permalink
  32. def setConvergenceTol(x: Double): Optimizable.this.type

    Permalink
  33. def setMaxIter(m: Int): Optimizable.this.type

    Permalink
  34. def setOptim(optim: Optimizer): Optimizable.this.type

    Permalink
  35. def setRegularizer(r: Option[Regularizer]): Optimizable.this.type

    Permalink
  36. def setRegularizer(r: Regularizer): Optimizable.this.type

    Permalink
  37. def setSeed(s: Long): Optimizable.this.type

    Permalink
  38. def step(data: DStream[Vector]): Optimizable.this.type

    Permalink

    Update model parameters using streaming data

    Update model parameters using streaming data

    data

    Streaming data

  39. def step(data: JavaRDD[Vector]): Unit

    Permalink

    Perform a gradient-based optimization step

    Perform a gradient-based optimization step

    data

    Data to fit the model

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  42. implicit val vectorOps: ParameterOperations[DenseVector[Double]]

    Permalink

    Linear Algebra operations necessary for computing updates for the parameters

    Linear Algebra operations necessary for computing updates for the parameters

    This is to avoid duplicating code for Gaussian and Weights updates in the optimization algorithms' classes

    Attributes
    protected
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped