org.apache.spark.ml.odkl.CombinedModel

PerTypeModelLearner

class PerTypeModelLearner[M <: ModelWithSummary[M]] extends ForkedEstimator[M, String, SelectingModel[M]] with HasTypeCol with HasPredictionCol

Collects types, available in the dataset and trains one model per each type.

Linear Supertypes
HasPredictionCol, HasTypeCol, ForkedEstimator[M, String, SelectingModel[M]], ForkedModelParams, SummarizableEstimator[SelectingModel[M]], Estimator[SelectingModel[M]], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PerTypeModelLearner
  2. HasPredictionCol
  3. HasTypeCol
  4. ForkedEstimator
  5. ForkedModelParams
  6. SummarizableEstimator
  7. Estimator
  8. PipelineStage
  9. Logging
  10. Params
  11. Serializable
  12. Serializable
  13. Identifiable
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PerTypeModelLearner(nested: SummarizableEstimator[M])

  2. new PerTypeModelLearner(nested: SummarizableEstimator[M], uid: String)

    nested

    Nested estimator or fitting.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def $[T](param: Param[T]): T

    Attributes
    protected
    Definition Classes
    Params
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

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

    Definition Classes
    ForkedEstimator
  9. final def clear(param: Param[_]): PerTypeModelLearner.this.type

    Definition Classes
    Params
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def copy(extra: ParamMap): PerTypeModelLearner[M]

    Definition Classes
    PerTypeModelLearnerSummarizableEstimator → Estimator → PipelineStage → Params
  12. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Attributes
    protected
    Definition Classes
    Params
  13. def createForks(dataset: DataFrame): Seq[(String, DataFrame)]

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

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

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

    Attributes
    protected
    Definition Classes
    Params
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Params
  18. def explainParams(): String

    Definition Classes
    Params
  19. final def extractParamMap(): ParamMap

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

    Definition Classes
    Params
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def fit(dataset: DataFrame): SelectingModel[M]

    Definition Classes
    ForkedEstimator → Estimator
  23. def fit(dataset: DataFrame, paramMaps: Array[ParamMap]): Seq[SelectingModel[M]]

    Definition Classes
    Estimator
  24. def fit(dataset: DataFrame, paramMap: ParamMap): SelectingModel[M]

    Definition Classes
    Estimator
  25. def fit(dataset: DataFrame, firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): SelectingModel[M]

    Definition Classes
    Estimator
    Annotations
    @varargs()
  26. def fitFork(estimator: SummarizableEstimator[M], wholeData: DataFrame, partialData: (String, DataFrame)): (String, M)

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

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

    Definition Classes
    AnyRef → Any
  29. final def getDefault[T](param: Param[T]): Option[T]

    Definition Classes
    Params
  30. final def getOrDefault[T](param: Param[T]): T

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

    Definition Classes
    Params
  32. final def getPredictionCol: String

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

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

    Definition Classes
    Params
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. final def isDefined(param: Param[_]): Boolean

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

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

    Definition Classes
    Params
  39. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  40. def log: Logger

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  47. def logName: String

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ForkedModelParams
  53. def mergeModels(sqlContext: SQLContext, models: Seq[(String, M)]): SelectingModel[M]

    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
    PerTypeModelLearnerForkedEstimator
  54. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  55. final def notify(): Unit

    Definition Classes
    AnyRef
  56. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  57. lazy val params: Array[Param[_]]

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

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

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

    Definition Classes
    ForkedModelParams
  61. final def set(paramPair: ParamPair[_]): PerTypeModelLearner.this.type

    Attributes
    protected
    Definition Classes
    Params
  62. final def set(param: String, value: Any): PerTypeModelLearner.this.type

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

    Definition Classes
    Params
  64. def setCacheForks(value: Boolean): PerTypeModelLearner.this.type

    Definition Classes
    ForkedEstimator
  65. final def setDefault(paramPairs: ParamPair[_]*): PerTypeModelLearner.this.type

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

    Attributes
    protected
    Definition Classes
    Params
  67. def setPathForTempModels(value: String): PerTypeModelLearner.this.type

    Definition Classes
    ForkedEstimator
  68. def setPredictionCol(value: String): PerTypeModelLearner.this.type

  69. def setPropagatedKeyColumn(value: String): PerTypeModelLearner.this.type

    Definition Classes
    ForkedModelParams
  70. def setTrainParallel(value: Boolean): PerTypeModelLearner.this.type

    Definition Classes
    ForkedEstimator
  71. def setTypeColumn(value: String): PerTypeModelLearner.this.type

    Definition Classes
    HasTypeCol
  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  73. def toString(): String

    Definition Classes
    Identifiable → AnyRef → Any
  74. final val trainParallel: Param[Boolean]

    Definition Classes
    ForkedEstimator
  75. def transformSchema(schema: StructType): StructType

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

    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  77. final val typeColumn: Param[String]

    Definition Classes
    HasTypeCol
  78. val uid: String

    Definition Classes
    PerTypeModelLearnerForkedEstimator → Identifiable
  79. def validateParams(): Unit

    Definition Classes
    Params
  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HasPredictionCol

Inherited from HasTypeCol

Inherited from ForkedEstimator[M, String, SelectingModel[M]]

Inherited from ForkedModelParams

Inherited from Estimator[SelectingModel[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