Class

org.apache.spark.ml.odkl.CombinedModel

PerClassModelLearner

Related Doc: package CombinedModel

Permalink

abstract class PerClassModelLearner[N <: ModelWithSummary[N], M <: MultiClassCombinationModelBase[N, M]] extends ForkedEstimator[N, String, M] with HasClassesCol with HasClassesWeights with HasLabelCol with HasPredictionCol

Collects all classes in the dataset and trains a model for each class. Base class for multi-class and linear combination model.

Linear Supertypes
HasPredictionCol, HasLabelCol, HasClassesWeights, HasClassesCol, ForkedEstimator[N, String, M], HasNumThreads, ForkedModelParams, SummarizableEstimator[M], Estimator[M], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PerClassModelLearner
  2. HasPredictionCol
  3. HasLabelCol
  4. HasClassesWeights
  5. HasClassesCol
  6. ForkedEstimator
  7. HasNumThreads
  8. ForkedModelParams
  9. SummarizableEstimator
  10. Estimator
  11. PipelineStage
  12. Logging
  13. Params
  14. Serializable
  15. Serializable
  16. Identifiable
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PerClassModelLearner(nested: SummarizableEstimator[N], uid: String)

    Permalink

    nested

    Estimator for nested models.

Abstract Value Members

  1. abstract def copy(extra: ParamMap): SummarizableEstimator[M]

    Permalink
    Definition Classes
    SummarizableEstimator → Estimator → PipelineStage → Params
  2. abstract def mergeModels(sqlContext: SQLContext, models: Seq[(String, Try[N])]): M

    Permalink

    Given models trained for each fork create a combined model.

    Given models trained for each fork create a combined model. This model is the result of the estimator.

    Attributes
    protected
    Definition Classes
    ForkedEstimator

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final val classesColumn: Param[String]

    Permalink
    Definition Classes
    HasClassesCol
  7. final val classesMap: JacksonParam[Map[String, String]]

    Permalink
  8. final val classesToIgnore: JacksonParam[Set[String]]

    Permalink
  9. final val classesWeights: JacksonParam[Map[String, Double]]

    Permalink
    Definition Classes
    HasClassesWeights
  10. final def clear(param: Param[_]): PerClassModelLearner.this.type

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  13. def createForkSource(dataset: Dataset[_]): ForkSource[N, String, M]

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  14. def createForks(dataset: Dataset[_]): Seq[(String, DataFrame)]

    Permalink

    Override this method and create forks to train from the data.

    Override this method and create forks to train from the data.

    Attributes
    protected
    Definition Classes
    PerClassModelLearnerForkedEstimator
  15. final def defaultCopy[T <: Params](extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  16. def diveToReproContext(partialData: (String, DataFrame), estimator: SummarizableEstimator[N]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  17. final val enableDive: BooleanParam

    Permalink
    Definition Classes
    ForkedEstimator
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def explainParam(param: Param[_]): String

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

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

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

    Permalink
    Definition Classes
    Params
  24. def failFast(key: String, triedIn: Try[N]): Try[N]

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def finilizeReproContext: ReproContext

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  27. def fit(dataset: Dataset[_]): M

    Permalink
    Definition Classes
    ForkedEstimator → Estimator
  28. def fit(dataset: Dataset[_], paramMaps: Array[ParamMap]): Seq[M]

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  29. def fit(dataset: Dataset[_], paramMap: ParamMap): M

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  30. def fit(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): M

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" ) @varargs()
  31. def fitFork(estimator: SummarizableEstimator[N], wholeData: Dataset[_], partialData: (String, DataFrame)): (String, Try[N])

    Permalink
    Definition Classes
    ForkedEstimator
  32. final def get[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  33. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  34. def getClassesWeights: Map[String, Double]

    Permalink
    Definition Classes
    HasClassesWeights
  35. def getCurrentContext: Seq[String]

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  36. final def getDefault[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  37. def getForkTags(partialData: (String, DataFrame)): Seq[(String, String)]

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  38. final def getLabelCol: String

    Permalink
    Definition Classes
    HasLabelCol
  39. final def getOrDefault[T](param: Param[T]): T

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

    Permalink
    Definition Classes
    Params
  41. final def getPredictionCol: String

    Permalink
    Definition Classes
    HasPredictionCol
  42. final def hasDefault[T](param: Param[T]): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  45. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  51. final val labelCol: Param[String]

    Permalink
    Definition Classes
    HasLabelCol
  52. def log: Logger

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  59. def logMetricsToReproContext(model: N): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedEstimator
  60. def logName: String

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  65. def mayBePropagateKey(data: DataFrame, key: Any): DataFrame

    Permalink
    Attributes
    protected
    Definition Classes
    ForkedModelParams
  66. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  67. val nested: SummarizableEstimator[N]

    Permalink

    Nested estimator to call for each fork.

    Nested estimator to call for each fork.

    Definition Classes
    ForkedEstimator
  68. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  70. final val numThreads: IntParam

    Permalink
    Definition Classes
    HasNumThreads
  71. final val overwriteModels: BooleanParam

    Permalink
    Definition Classes
    ForkedEstimator
  72. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  73. final val pathForTempModels: Param[String]

    Permalink
    Definition Classes
    ForkedEstimator
  74. final val persistingKeyColumns: StringArrayParam

    Permalink
    Definition Classes
    ForkedEstimator
  75. final val predictionCol: Param[String]

    Permalink
    Definition Classes
    HasPredictionCol
  76. final val propagatedKeyColumn: Param[String]

    Permalink
    Definition Classes
    ForkedModelParams
  77. final def set(paramPair: ParamPair[_]): PerClassModelLearner.this.type

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

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

    Permalink
    Definition Classes
    Params
  80. def setClassesColumn(value: String): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    HasClassesCol
  81. def setClassesMap(values: (String, String)*): PerClassModelLearner.this.type

    Permalink
  82. def setClassesToIgnore(values: String*): PerClassModelLearner.this.type

    Permalink
  83. def setClassesWeights(weights: (String, Double)*): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    HasClassesWeights
  84. final def setDefault(paramPairs: ParamPair[_]*): PerClassModelLearner.this.type

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

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  86. def setEnableDive(value: Boolean): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    ForkedEstimator
  87. def setNumThreads(value: Int): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    HasNumThreads
  88. def setOverwriteModels(value: Boolean): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    ForkedEstimator
  89. def setPathForTempModels(value: String): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    ForkedEstimator
  90. def setPredictionCol(value: String): PerClassModelLearner.this.type

    Permalink
  91. def setPropagatedKeyColumn(value: String): PerClassModelLearner.this.type

    Permalink
    Definition Classes
    ForkedModelParams
  92. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Identifiable → AnyRef → Any
  94. def transformSchema(schema: StructType): StructType

    Permalink
    Definition Classes
    ForkedEstimator → PipelineStage
    Annotations
    @DeveloperApi()
  95. def transformSchema(schema: StructType, logging: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  96. val uid: String

    Permalink
    Definition Classes
    PerClassModelLearnerForkedEstimator → Identifiable
  97. final def wait(): Unit

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

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

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

Inherited from HasPredictionCol

Inherited from HasLabelCol

Inherited from HasClassesWeights

Inherited from HasClassesCol

Inherited from ForkedEstimator[N, String, M]

Inherited from HasNumThreads

Inherited from ForkedModelParams

Inherited from SummarizableEstimator[M]

Inherited from Estimator[M]

Inherited from PipelineStage

Inherited from Logging

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

Ungrouped