org.apache.spark.ml.odkl

UnwrappedStage

class UnwrappedStage[M <: ModelWithSummary[M], T <: ModelTransformer[M, T]] extends Estimator[M] with SummarizableEstimator[M]

In case if we can avoid certain stages used during training while predicting we need to propagate some changes to the model (eg. unscale weights or remove intercept). Also useful for extending summary blocks (eg. during evaluation/cross-validation).

This class is used as a typical pipeline stage while training (fits and applies transformer, then calls the nested estimator), but it automatically eliminates itself from the resulting model by applying model transformer.

Linear Supertypes
SummarizableEstimator[M], Estimator[M], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UnwrappedStage
  2. SummarizableEstimator
  3. Estimator
  4. PipelineStage
  5. Logging
  6. Params
  7. Serializable
  8. Serializable
  9. Identifiable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UnwrappedStage(estimator: Estimator[M], transformer: T)

  2. new UnwrappedStage(estimator: Estimator[M], transformerTrainer: Estimator[T])

  3. new UnwrappedStage(estimator: Estimator[M], transformerTrainer: Estimator[T], uid: String)

    estimator

    Nested estimator to pass control

    transformerTrainer

    Estimator for fitting data AND model transformer.

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. def cacheTransformed: BooleanParam

  9. final def clear(param: Param[_]): UnwrappedStage.this.type

    Definition Classes
    Params
  10. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Params
  17. def explainParams(): String

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

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

    Definition Classes
    Params
  20. def finalize(): Unit

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

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

    Definition Classes
    Estimator
  23. def fit(dataset: DataFrame, paramMap: ParamMap): M

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

    Definition Classes
    Estimator
    Annotations
    @varargs()
  25. final def get[T](param: Param[T]): Option[T]

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

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

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

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

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

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

    Definition Classes
    Params
  32. def hashCode(): Int

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

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

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

    Definition Classes
    Params
  36. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  37. def log: Logger

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  44. def logName: String

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  49. def materializeCached: BooleanParam

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

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

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

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

    Definition Classes
    Params
  54. final def set(paramPair: ParamPair[_]): UnwrappedStage.this.type

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

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

    Definition Classes
    Params
  57. def setCacheTransformed(value: Boolean = true): UnwrappedStage.this.type

  58. final def setDefault(paramPairs: ParamPair[_]*): UnwrappedStage.this.type

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

    Attributes
    protected
    Definition Classes
    Params
  60. def setMaterializeCached(value: Boolean = true): UnwrappedStage.this.type

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

    Definition Classes
    AnyRef
  62. def toString(): String

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

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

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

    Definition Classes
    UnwrappedStage → Identifiable
  66. def validateParams(): Unit

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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