Class

com.github.ozancicek.artan.ml.mixture

BernoulliMixture

Related Doc: package mixture

Permalink

class BernoulliMixture extends FiniteMixture[Boolean, BernoulliDistribution, BernoulliMixtureDistribution, BernoulliMixtureInput, BernoulliMixtureState, BernoulliMixtureOutput, BernoulliMixture] with HasInitialProbabilities with HasInitialProbabilitiesCol

Online bernoulli mixture estimator with a stateful transformer, based on Cappe (2011) Online Expectation-Maximisation paper.

Outputs an estimate for each input sample in a single pass, by replacing the E-step in EM with a stochastic E-step.

Linear Supertypes
HasInitialProbabilitiesCol, HasInitialProbabilities, FiniteMixture[Boolean, BernoulliDistribution, BernoulliMixtureDistribution, BernoulliMixtureInput, BernoulliMixtureState, BernoulliMixtureOutput, BernoulliMixture], MixtureParams[BernoulliMixture], HasBatchTrainEnabled, HasUpdateHoldoutCol, HasBatchTrainTol, HasBatchTrainMaxIter, HasInitialMixtureModelCol, HasDecayRate, HasMinibatchSizeCol, HasMinibatchSize, HasUpdateHoldout, HasSampleCol, HasStepSize, HasStepSizeCol, HasInitialWeightsCol, HasInitialWeights, StatefulTransformer[String, BernoulliMixtureInput, BernoulliMixtureState, BernoulliMixtureOutput, BernoulliMixture], StatefulTransformerParams[BernoulliMixture, String], HasStateTimeoutDuration, HasStateKeyCol[String], HasWatermarkDuration, HasEventTimeCol, HasStateTimeoutMode, Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. BernoulliMixture
  2. HasInitialProbabilitiesCol
  3. HasInitialProbabilities
  4. FiniteMixture
  5. MixtureParams
  6. HasBatchTrainEnabled
  7. HasUpdateHoldoutCol
  8. HasBatchTrainTol
  9. HasBatchTrainMaxIter
  10. HasInitialMixtureModelCol
  11. HasDecayRate
  12. HasMinibatchSizeCol
  13. HasMinibatchSize
  14. HasUpdateHoldout
  15. HasSampleCol
  16. HasStepSize
  17. HasStepSizeCol
  18. HasInitialWeightsCol
  19. HasInitialWeights
  20. StatefulTransformer
  21. StatefulTransformerParams
  22. HasStateTimeoutDuration
  23. HasStateKeyCol
  24. HasWatermarkDuration
  25. HasEventTimeCol
  26. HasStateTimeoutMode
  27. Transformer
  28. PipelineStage
  29. Logging
  30. Params
  31. Serializable
  32. Serializable
  33. Identifiable
  34. AnyRef
  35. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BernoulliMixture(mixtureCount: Int)

    Permalink
  2. new BernoulliMixture(mixtureCount: Int, uid: String)

    Permalink

    mixtureCount

    number of mixture components

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 $[T](param: Param[T]): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def asDataFrame(in: Dataset[BernoulliMixtureOutput]): DataFrame

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  6. def asDataFrameTransformSchema(schema: StructType): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. final val batchTrainEnabled: Param[Boolean]

    Permalink

    Flag for enabling batch EM

    Flag for enabling batch EM

    Definition Classes
    HasBatchTrainEnabled
  9. final val batchTrainMaxIter: Param[Int]

    Permalink

    maxIter for batch EM

    maxIter for batch EM

    Definition Classes
    HasBatchTrainMaxIter
  10. final val batchTrainTol: Param[Double]

    Permalink

    Tolerance to stop iterations in batch EM

    Tolerance to stop iterations in batch EM

    Definition Classes
    HasBatchTrainTol
  11. def buildInitialMixtureModel(dataFrame: DataFrame): DataFrame

    Permalink

    Build the initialMixtureModel column from distribution specific parameters

    Build the initialMixtureModel column from distribution specific parameters

    Attributes
    protected
    Definition Classes
    BernoulliMixture → FiniteMixture
  12. final def clear(param: Param[_]): BernoulliMixture.this.type

    Permalink
    Definition Classes
    Params
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def copy(extra: ParamMap): BernoulliMixture

    Permalink

    Creates a copy of this instance with the same UID and some extra params.

    Creates a copy of this instance with the same UID and some extra params.

    Definition Classes
    BernoulliMixture → Transformer → PipelineStage → Params
  15. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  16. final val decayRate: Param[Double]

    Permalink

    Decaying stepSize

    Decaying stepSize

    Definition Classes
    HasDecayRate
  17. final def defaultCopy[T <: Params](extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  18. val defaultStateKey: String

    Permalink
    Attributes
    protected
    Definition Classes
    BernoulliMixture → HasStateKeyCol
  19. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. final val eventTimeCol: Param[String]

    Permalink

    Param for event time column name, which marks the event time of the received measurements.

    Param for event time column name, which marks the event time of the received measurements. If set, the measurements will be processed in ascending order according to event time.

    Definition Classes
    HasEventTimeCol
  22. def explainParam(param: Param[_]): String

    Permalink
    Definition Classes
    Params
  23. def explainParams(): String

    Permalink
    Definition Classes
    Params
  24. final def extractParamMap(): ParamMap

    Permalink
    Definition Classes
    Params
  25. final def extractParamMap(extra: ParamMap): ParamMap

    Permalink
    Definition Classes
    Params
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def get[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  28. final def getBatchTrainEnabled: Boolean

    Permalink

    Getter for batch EM flag

    Getter for batch EM flag

    Definition Classes
    HasBatchTrainEnabled
  29. final def getBatchTrainMaxIter: Int

    Permalink

    Getter for batch train max iter parameter

    Getter for batch train max iter parameter

    Definition Classes
    HasBatchTrainMaxIter
  30. final def getBatchTrainTol: Double

    Permalink

    Getter for batch train tolerance

    Getter for batch train tolerance

    Definition Classes
    HasBatchTrainTol
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def getDecayRateExpr: UserDefinedFunction

    Permalink

    Get decay rate as udf

    Get decay rate as udf

    Attributes
    protected
    Definition Classes
    HasDecayRate
  33. final def getDefault[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  34. def getEventTimeCol: String

    Permalink

    Getter for event time column parameter

    Getter for event time column parameter

    Definition Classes
    HasEventTimeCol
  35. final def getInitialMixtureModelCol: String

    Permalink

    Getter for initial mixture model column

    Getter for initial mixture model column

    Definition Classes
    HasInitialMixtureModelCol
  36. final def getInitialProbabilities: Array[Double]

    Permalink

    Getter for initial probabilities column

    Getter for initial probabilities column

    Definition Classes
    HasInitialProbabilities
  37. final def getInitialProbabilitiesCol: String

    Permalink

    Getter for initial probabilities column

    Getter for initial probabilities column

    Definition Classes
    HasInitialProbabilitiesCol
  38. final def getInitialWeights: Array[Double]

    Permalink

    Getter for initialWeights parameter

    Getter for initialWeights parameter

    Definition Classes
    HasInitialWeights
  39. final def getInitialWeightsCol: String

    Permalink

    Getter for initialWeightsCol parameter

    Getter for initialWeightsCol parameter

    Definition Classes
    HasInitialWeightsCol
  40. final def getMinibatchSize: Int

    Permalink

    Minibatch param getter

    Minibatch param getter

    Definition Classes
    HasMinibatchSize
  41. final def getMinibatchSizeCol: String

    Permalink

    MinibatchSizeCol param getter

    MinibatchSizeCol param getter

    Definition Classes
    HasMinibatchSizeCol
  42. final def getOrDefault[T](param: Param[T]): T

    Permalink
    Definition Classes
    Params
  43. def getParam(paramName: String): Param[Any]

    Permalink
    Definition Classes
    Params
  44. final def getSampleCol: String

    Permalink

    Getter for sample column.

    Getter for sample column.

    Definition Classes
    HasSampleCol
  45. final def getStateKeyColname: String

    Permalink

    Getter for state key column name parameter

    Getter for state key column name parameter

    Definition Classes
    HasStateKeyCol
  46. final def getStateKeyColumn: Column

    Permalink

    Getter for state key column

    Getter for state key column

    Definition Classes
    HasStateKeyCol
  47. def getStateTimeoutDuration: Option[String]

    Permalink

    Getter for state timeout duration parameter

    Getter for state timeout duration parameter

    Definition Classes
    HasStateTimeoutDuration
  48. final def getStepSize: Double

    Permalink

    Getter for stepSize parameter

    Getter for stepSize parameter

    Definition Classes
    HasStepSize
  49. final def getStepSizeCol: String

    Permalink

    Getter for stepSizeCol parameter

    Getter for stepSizeCol parameter

    Definition Classes
    HasStepSizeCol
  50. def getTimeoutMode: TimeoutMode

    Permalink

    Getter for timeout mode

    Getter for timeout mode

    returns

    TimeoutMode

    Definition Classes
    HasStateTimeoutMode
  51. def getUDFWithDefault[DefaultType](defaultParam: Param[DefaultType], colParam: Param[String])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[DefaultType]): Column

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  52. final def getUpdateHoldout: Int

    Permalink

    Getter for update holdout param

    Getter for update holdout param

    Definition Classes
    HasUpdateHoldout
  53. final def getUpdateHoldoutCol: String

    Permalink

    Getter for update holdout column param

    Getter for update holdout column param

    Definition Classes
    HasUpdateHoldoutCol
  54. def getWatermarkDuration: String

    Permalink

    Getter for watermark duration parameter

    Getter for watermark duration parameter

    Definition Classes
    HasWatermarkDuration
  55. final def hasDefault[T](param: Param[T]): Boolean

    Permalink
    Definition Classes
    Params
  56. def hasParam(paramName: String): Boolean

    Permalink
    Definition Classes
    Params
  57. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  58. final val initialMixtureModelCol: Param[String]

    Permalink

    Initial mixture model as a struct column

    Initial mixture model as a struct column

    Definition Classes
    HasInitialMixtureModelCol
  59. final val initialProbabilities: Param[Array[Double]]

    Permalink

    Initial probabilities of the mixtures.

    Initial probabilities of the mixtures.

    Definition Classes
    HasInitialProbabilities
  60. final val initialProbabilitiesCol: Param[String]

    Permalink

    Initial probabilities from dataframe column.

    Initial probabilities from dataframe column.

    Definition Classes
    HasInitialProbabilitiesCol
  61. final val initialWeights: Param[Array[Double]]

    Permalink

    Initial weight of the mixtures

    Initial weight of the mixtures

    Definition Classes
    HasInitialWeights
  62. final val initialWeightsCol: Param[String]

    Permalink

    Initial weights as dataframe column

    Initial weights as dataframe column

    Definition Classes
    HasInitialWeightsCol
  63. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  64. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  65. final def isDefined(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  66. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  67. final def isSet(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  68. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  69. def keyFunc: (BernoulliMixtureInput) ⇒ String

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  70. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  71. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  72. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  73. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  74. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  75. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  76. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  77. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  78. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  79. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  80. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  81. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  82. final val minibatchSize: Param[Int]

    Permalink

    Number of samples in a batch

    Number of samples in a batch

    Definition Classes
    HasMinibatchSize
  83. final val minibatchSizeCol: Param[String]

    Permalink

    Number of samples in a batch from dataframe column

    Number of samples in a batch from dataframe column

    Definition Classes
    HasMinibatchSizeCol
  84. val mixtureCount: Int

    Permalink

    number of mixture components

    number of mixture components

    Definition Classes
    BernoulliMixture → HasInitialProbabilities → HasInitialWeights
  85. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  88. implicit val outEncoder: Encoder[BernoulliMixtureOutput]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  89. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  90. implicit val rowEncoder: Encoder[BernoulliMixtureInput]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  91. final val sampleCol: Param[String]

    Permalink

    Param for sample column.

    Param for sample column.

    Definition Classes
    HasSampleCol
  92. final def set(paramPair: ParamPair[_]): BernoulliMixture.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  93. final def set(param: String, value: Any): BernoulliMixture.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  94. final def set[T](param: Param[T], value: T): BernoulliMixture.this.type

    Permalink
    Definition Classes
    Params
  95. def setBatchTrainMaxIter(value: Int): BernoulliMixture

    Permalink

    Sets the maximum iterations for batch EM mode

    Sets the maximum iterations for batch EM mode

    Definition Classes
    MixtureParams
  96. def setBatchTrainTol(value: Double): BernoulliMixture

    Permalink

    Sets the stopping criteria in terms of loglikelihood improvement for batch EM mode

    Sets the stopping criteria in terms of loglikelihood improvement for batch EM mode

    Definition Classes
    MixtureParams
  97. def setDecayRate(value: Double): BernoulliMixture

    Permalink

    Sets the step size as a decaying function rather than a constant step size, which might be preferred for batch training.

    Sets the step size as a decaying function rather than a constant step size, which might be preferred for batch training. If set, the step size will be replaced with the output of following function:

    stepSize = pow(2 + kIter, -decayRate)

    Where kIter is incremented by 1 at each minibatch.

    Definition Classes
    MixtureParams
  98. final def setDefault(paramPairs: ParamPair[_]*): BernoulliMixture.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  99. final def setDefault[T](param: Param[T], value: T): BernoulliMixture.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  100. def setEnableBatchEM: BernoulliMixture

    Permalink

    Enables batch EM mode.

    Enables batch EM mode. When enabled, transform method will do an iterative EM training with multiple passes as opposed to online training with single pass.

    Disabled by default

    Definition Classes
    MixtureParams
  101. def setEventTimeCol(value: String): BernoulliMixture

    Permalink

    Sets the event time column in the input DataFrame for event time based state timeout.

    Sets the event time column in the input DataFrame for event time based state timeout.

    Definition Classes
    StatefulTransformerParams
  102. def setInitialMixtureModelCol(value: String): BernoulliMixture

    Permalink

    Sets the initial mixture model directly from dataframe column

    Sets the initial mixture model directly from dataframe column

    Definition Classes
    MixtureParams
  103. def setInitialProbabilities(value: Array[Double]): BernoulliMixture

    Permalink

    Sets the initial bernoulli probabilities of the mixtures.

    Sets the initial bernoulli probabilities of the mixtures. The length of the array should be equal to mixture count, each element in the array should be between 0 and 1.

    Default is equally spaced probabilities between 0 and 1

  104. def setInitialProbabilitiesCol(value: String): BernoulliMixture

    Permalink

    Sets the initial probabilities from dataframe column to set different probabilities across different models.

    Sets the initial probabilities from dataframe column to set different probabilities across different models. Overrides the parameter set by setInitialProbabilities

  105. def setInitialWeights(value: Array[Double]): BernoulliMixture

    Permalink

    Sets the initial weights of the mixtures.

    Sets the initial weights of the mixtures. The weights should sum up to 1.0.

    Definition Classes
    MixtureParams
  106. def setInitialWeightsCol(value: String): BernoulliMixture

    Permalink

    Sets the initial weights of the mixtures from dataframe column.

    Sets the initial weights of the mixtures from dataframe column. Column should contain array of doubles. Overrides the value set by setInitialWeights.

    Definition Classes
    MixtureParams
  107. def setMinibatchSize(value: Int): BernoulliMixture

    Permalink

    Sets the minibatch size for batching samples together in online EM algorithm.

    Sets the minibatch size for batching samples together in online EM algorithm. Estimate will be produced once per each batch. Having larger batches increases stability with increased memory footprint.

    Default is 1

    Definition Classes
    MixtureParams
  108. def setMinibatchSizeCol(value: String): BernoulliMixture

    Permalink

    Sets the minibatch size from dataframe column rather than a constant minibatch size across all states.

    Sets the minibatch size from dataframe column rather than a constant minibatch size across all states. Overrides setMinibatchSize setting.

    Definition Classes
    MixtureParams
  109. def setSampleCol(value: String): BernoulliMixture

    Permalink

    Sets the sample column for the mixture model inputs.

    Sets the sample column for the mixture model inputs. Depending on the mixture distribution, sample type should be different.

    Bernoulli => Boolean Poisson => Long MultivariateGaussian => Vector

    Definition Classes
    MixtureParams
  110. def setStateKeyCol(value: String): BernoulliMixture

    Permalink

    Sets the state key column.

    Sets the state key column. Each value in the column should uniquely identify a stateful transformer. Each unique value will result in a separate state.

    Definition Classes
    StatefulTransformerParams
  111. def setStateTimeoutDuration(value: String): BernoulliMixture

    Permalink

    Sets the state timeout duration for all states, only valid when state timeout mode is not 'none'.

    Sets the state timeout duration for all states, only valid when state timeout mode is not 'none'. Must be a valid duration string, such as '10 minutes'.

    Definition Classes
    StatefulTransformerParams
  112. def setStateTimeoutMode(value: String): BernoulliMixture

    Permalink

    Sets the state timeout mode.

    Sets the state timeout mode. Supported values are 'none', 'process' and 'event'. Enabling state timeout will clear the state after a certain timeout duration which can be set. If a state receives measurements after it times out, the state will be initialized as if it received no measurements.

    - 'none': No state timeout, state is kept indefinitely.

    - 'process': Process time based state timeout, state will be cleared if no measurements are received for a duration based on processing time. Effects all states. Timeout duration must be set with setStateTimeoutDuration.

    - 'event': Event time based state timeout, state will be cleared if no measurements are recieved for a duration based on event time determined by watermark. Effects all states. Timeout duration must be set with setStateTimeoutDuration. Additionally, event time column and it's watermark duration must be set with setEventTimeCol and setWatermarkDuration. Note that this will result in dropping measurements occuring later than the watermark.

    Default is 'none'

    Definition Classes
    StatefulTransformerParams
  113. def setStepSize(value: Double): BernoulliMixture

    Permalink

    Sets the step size parameter, which weights the current parameter of the model against the old parameter.

    Sets the step size parameter, which weights the current parameter of the model against the old parameter. A step size of 1.0 means ignore the old parameter, whereas a step size of 0 means ignore the current parameter. Values closer to 1.0 will increase speed of convergence, but might have adverse effects on stability. In an online setting, it is advised to set it close to 0.0.

    Default is 0.1

    Definition Classes
    MixtureParams
  114. def setStepSizeCol(value: String): BernoulliMixture

    Permalink

    Sets the step size from dataframe column, which would allow setting different step sizes accross measurements.

    Sets the step size from dataframe column, which would allow setting different step sizes accross measurements. Overrides the value set by setStepSize.

    Definition Classes
    MixtureParams
  115. def setUpdateHoldout(value: Int): BernoulliMixture

    Permalink

    Sets the update holdout parameter which controls after how many samples the mixture will start calculating estimates.

    Sets the update holdout parameter which controls after how many samples the mixture will start calculating estimates. Preventing update in first few samples might be preferred for stability.

    Definition Classes
    MixtureParams
  116. def setUpdateHoldoutCol(value: String): BernoulliMixture

    Permalink

    Sets the update holdout parameter from dataframe column rather than a constant value across all states.

    Sets the update holdout parameter from dataframe column rather than a constant value across all states. Overrides the value set by setUpdateHoldout.

    Definition Classes
    MixtureParams
  117. def setWatermarkDuration(value: String): BernoulliMixture

    Permalink

    Set the watermark duration for all states, only valid when state timeout mode is 'event'.

    Set the watermark duration for all states, only valid when state timeout mode is 'event'. Must be a valid duration string, such as '10 minutes'.

    Definition Classes
    StatefulTransformerParams
  118. implicit val stateEncoder: Encoder[BernoulliMixtureState]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  119. final val stateKeyCol: Param[String]

    Permalink

    Param for state key column.

    Param for state key column. State keys uniquely identify the each state in stateful transformers, thus controlling the number of states and the degree of parallelization"

    Definition Classes
    HasStateKeyCol
  120. implicit val stateKeyEncoder: Encoder[String]

    Permalink
    Attributes
    protected
    Definition Classes
    FiniteMixture
  121. final val stateTimeoutDuration: Param[String]

    Permalink

    Param for state timeout duration.

    Param for state timeout duration.

    Definition Classes
    HasStateTimeoutDuration
  122. def stateUpdateSpec: MixtureUpdateSpec[Boolean, BernoulliDistribution, BernoulliMixtureDistribution, BernoulliMixtureInput, BernoulliMixtureState, BernoulliMixtureOutput]

    Permalink
    Attributes
    protected
    Definition Classes
    FiniteMixture → StatefulTransformer
  123. final val stepSize: Param[Double]

    Permalink

    Controls the inertia of the current parameter.

    Controls the inertia of the current parameter.

    Definition Classes
    HasStepSize
  124. final val stepSizeCol: Param[String]

    Permalink

    stepSize as dataframe column

    stepSize as dataframe column

    Definition Classes
    HasStepSizeCol
  125. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  126. final val timeoutMode: Param[String]

    Permalink

    Param for timeout mode, controlling the eviction of states which receive no measurement for a certain duration

    Param for timeout mode, controlling the eviction of states which receive no measurement for a certain duration

    Definition Classes
    HasStateTimeoutMode
  127. def toString(): String

    Permalink
    Definition Classes
    Identifiable → AnyRef → Any
  128. def transform(dataset: Dataset[_]): DataFrame

    Permalink

    Transforms the dataframe of samples to a dataframe of mixture parameter estimates.

    Transforms the dataframe of samples to a dataframe of mixture parameter estimates.

    Definition Classes
    FiniteMixture → Transformer
  129. def transform(dataset: Dataset[_], paramMap: ParamMap): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" )
  130. def transform(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" ) @varargs()
  131. def transformAndValidateSchema(schema: StructType): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    FiniteMixture
  132. def transformSchema(schema: StructType): StructType

    Permalink

    Applies the transformation to dataset schemas

    Applies the transformation to dataset schemas

    Definition Classes
    BernoulliMixture → PipelineStage
  133. def transformSchema(schema: StructType, logging: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  134. def transformWithState(in: DataFrame)(implicit keyEncoder: Encoder[String]): Dataset[BernoulliMixtureOutput]

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  135. val uid: String

    Permalink
    Definition Classes
    BernoulliMixture → Identifiable
  136. final val updateHoldout: Param[Int]

    Permalink

    Update holdout parameter

    Update holdout parameter

    Definition Classes
    HasUpdateHoldout
  137. final val updateHoldoutCol: Param[String]

    Permalink

    Update holdout parameter from dataframe column

    Update holdout parameter from dataframe column

    Definition Classes
    HasUpdateHoldoutCol
  138. def validateWatermarkColumns(schema: StructType): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    StatefulTransformer
  139. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  142. final val watermarkDuration: Param[String]

    Permalink

    Param for watermark duration as string, measured from the eventTimeCol column.

    Param for watermark duration as string, measured from the eventTimeCol column. If set, measurements will be processed in append mode with the specified watermark duration.

    Definition Classes
    HasWatermarkDuration

Inherited from HasInitialProbabilitiesCol

Inherited from HasInitialProbabilities

Inherited from FiniteMixture[Boolean, BernoulliDistribution, BernoulliMixtureDistribution, BernoulliMixtureInput, BernoulliMixtureState, BernoulliMixtureOutput, BernoulliMixture]

Inherited from MixtureParams[BernoulliMixture]

Inherited from HasBatchTrainEnabled

Inherited from HasUpdateHoldoutCol

Inherited from HasBatchTrainTol

Inherited from HasBatchTrainMaxIter

Inherited from HasInitialMixtureModelCol

Inherited from HasDecayRate

Inherited from HasMinibatchSizeCol

Inherited from HasMinibatchSize

Inherited from HasUpdateHoldout

Inherited from HasSampleCol

Inherited from HasStepSize

Inherited from HasStepSizeCol

Inherited from HasInitialWeightsCol

Inherited from HasInitialWeights

Inherited from StatefulTransformer[String, BernoulliMixtureInput, BernoulliMixtureState, BernoulliMixtureOutput, BernoulliMixture]

Inherited from StatefulTransformerParams[BernoulliMixture, String]

Inherited from HasStateTimeoutDuration

Inherited from HasStateKeyCol[String]

Inherited from HasWatermarkDuration

Inherited from HasEventTimeCol

Inherited from HasStateTimeoutMode

Inherited from Transformer

Inherited from PipelineStage

Inherited from Logging

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

Parameters

State Parameters

Members

Parameter setters

Parameter getters