Object/Class

org.apache.spark.ml.odkl

CombinedModel

Related Docs: class CombinedModel | package odkl

Permalink

object CombinedModel extends MLReadable[PipelineStage] with Serializable

Linear Supertypes
Serializable, Serializable, MLReadable[PipelineStage], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CombinedModel
  2. Serializable
  3. Serializable
  4. MLReadable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait DirectPredictionModel[I, M <: DirectPredictionModel[I, M]] extends PredictionModel[I, M] with HasDirectTransformOption

    Permalink

    Direct prediction model is an extension to a model with an ability to predict for single point instead of transforming dataset.

    Direct prediction model is an extension to a model with an ability to predict for single point instead of transforming dataset. Used to improve performance of the combined models.

    I

    Type of the model input

  2. class LinearCombinationModelLearner[M <: ModelWithSummary[M]] extends PerClassModelLearner[M, LinearCombinationModel[M]]

    Permalink

    Trains a model which predicts a scalar of weighted classes or a vector which is a generalized linear combination of per-class predictions

  3. class MultiClassModelLearner[M <: ModelWithSummary[M]] extends PerClassModelLearner[M, MultiClassCombinationModel[M]]

    Permalink

    Trains a model which predicts vector (one element per class)

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

    Permalink

    Collects all classes in the dataset and trains a model for each class.

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

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

    Permalink

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

  6. class Reader[M <: ModelWithSummary[M], C <: CombinedModel[M, C]] extends WithSummaryReader[C]

    Permalink
  7. class ReaderUntyped extends WithSummaryReaderUntyped

    Permalink
  8. class Writer[M <: ModelWithSummary[M], C <: CombinedModel[M, C]] extends WithSummaryWriter[C]

    Permalink

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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  12. def linearCombination[M <: ModelWithSummary[M]](estimator: SummarizableEstimator[M], classesColumn: String = "classes", classesToIgnore: Seq[String] = Seq(), classesMap: Map[String, String] = Map(), parallel: Boolean = false, cacheForks: Boolean = false): LinearCombinationModelLearner[M]

    Permalink

    Train models for all classes.

    Train models for all classes. Result is a linear combination model. Summary blocks for combined model are merged from the nested model with extra class column.

    M

    Type of the model to train.

    estimator

    Estimator for training the nested models.

    classesColumn

    Column where the classes are recorded.

    classesToIgnore

    Which classes not to include into result.

    classesMap

    Mapping for merging/renaming classes.

    parallel

    Whenever to train classes in parallel.

    cacheForks

    Whenever to cache forks before iterating

    returns

    Linear combination model (given an instance coputes prediction of all the models and combines them linary with configured weights).

  13. def linearCombinationReader[M <: ModelWithSummary[M]](nestedReader: WithSummaryReader[M]): WithSummaryReader[LinearCombinationModel[M]]

    Permalink

    returns

    Reader for linear combination combination model.

  14. def load(path: String): PipelineStage

    Permalink
    Definition Classes
    MLReadable
    Annotations
    @Since( "1.6.0" )
  15. def multiClass[M <: ModelWithSummary[M]](estimator: SummarizableEstimator[M], classesColumn: String = "classes", classesToIgnore: Seq[String] = Seq(), classesMap: Map[String, String] = Map(), parallel: Boolean = false, cacheForks: Boolean = false): MultiClassModelLearner[M]

    Permalink

    Train models for all classes.

    Train models for all classes. Result is a vector with prediction for each class. Summary blocks for combined model are merged from the nested model with extra class column.

    M

    Type of the model to train.

    estimator

    Estimator for training the nested models.

    classesColumn

    Column where the classes are recorded.

    classesToIgnore

    Which classes not to include into result.

    classesMap

    Mapping for merging/renaming classes.

    parallel

    Whenever to train classes in parallel.

    cacheForks

    Whenever to cache forks before iterating

    returns

    Linear combination model (given an instance coputes prediction of all the models and combines them linary with configured weights).

  16. def multiClassReader[M <: ModelWithSummary[M]](nestedReader: WithSummaryReader[M]): WithSummaryReader[LinearCombinationModel[M]]

    Permalink

    returns

    Reader for multi class combination model.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def perType[M <: ModelWithSummary[M]](estimator: SummarizableEstimator[M], typeColumn: String = "type", parallel: Boolean = false, cacheForks: Boolean = false): PerTypeModelLearner[M]

    Permalink

    Train dedicated model for a certain type.

    Train dedicated model for a certain type. Result is a selector model. Summary blocks for combined model are merged from the nested model with extra type column.

    M

    Type of the model to train.

    estimator

    Estimator for training the nested models.

    typeColumn

    Column where the type label stored.

    parallel

    Whenever to train types in parallel.

    cacheForks

    Whenever to cache forks before iterating

    returns

    Selector model (given instance type applies ONE of the models)

  21. def perTypeReader[M <: ModelWithSummary[M]](nestedReader: WithSummaryReader[M]): WithSummaryReader[SelectingModel[M]]

    Permalink

    returns

    Reader for type selecting model.

  22. def read: MLReader[PipelineStage]

    Permalink
    Definition Classes
    CombinedModel → MLReadable
    Annotations
    @Since( "1.6.0" )
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from MLReadable[PipelineStage]

Inherited from AnyRef

Inherited from Any

Ungrouped