Class

com.salesforce.op.stages.sparkwrappers.generic

SwUnaryEstimator

Related Doc: package generic

Permalink

class SwUnaryEstimator[I <: FeatureType, O <: FeatureType, M <: Model[M], E <: Estimator[M] with Params] extends Estimator[SwUnaryModel[I, O, M]] with OpPipelineStage1[I, O] with SparkWrapperParams[E]

Generic wrapper for any spark estimator that has one input and one output

I

input feature type

O

output feature type

M

spark model type returned by spark estimator wrapped

E

spark estimator to wrap

Linear Supertypes
SparkWrapperParams[E], OpPipelineStage1[I, O], HasIn1, OpPipelineStage[O], OpPipelineStageBase, MLWritable, OpPipelineStageParams, InputParams, Estimator[SwUnaryModel[I, O, M]], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SwUnaryEstimator
  2. SparkWrapperParams
  3. OpPipelineStage1
  4. HasIn1
  5. OpPipelineStage
  6. OpPipelineStageBase
  7. MLWritable
  8. OpPipelineStageParams
  9. InputParams
  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 SwUnaryEstimator(inputParamName: String, outputParamName: String, operationName: String, sparkMlStageIn: Option[E], uid: String = UID[SwUnaryEstimator[I, O, M, E]])(implicit tti: scala.reflect.api.JavaUniverse.TypeTag[I], tto: scala.reflect.api.JavaUniverse.TypeTag[O], ttov: scala.reflect.api.JavaUniverse.TypeTag[O.Value])

    Permalink

    inputParamName

    name of spark parameter that sets the second input column

    outputParamName

    name of spark parameter that sets the first output column

    operationName

    unique name of the operation this stage performs

    sparkMlStageIn

    spark estimator to wrap

    uid

    stage uid

    tti

    type tag for input

    tto

    type tag for output

    ttov

    type tag for output value

Type Members

  1. final type InputFeatures = FeatureLike[I]

    Permalink
    Definition Classes
    OpPipelineStage1 → OpPipelineStage → InputParams
  2. final type OutputFeatures = FeatureLike[O]

    Permalink
    Definition Classes
    OpPipelineStage → OpPipelineStageBase

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 def checkInputLength(features: Array[_]): Boolean

    Permalink
    Definition Classes
    OpPipelineStage1 → InputParams
  7. def checkSerializable: Try[Unit]

    Permalink
    Definition Classes
    OpPipelineStageBase
  8. final def clear(param: Param[_]): SwUnaryEstimator.this.type

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def copy(extra: ParamMap): SwUnaryEstimator.this.type

    Permalink
    Definition Classes
    OpPipelineStageBase → Params
  11. def copyValues[T <: Params](to: T, extra: ParamMap): T

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fit(dataset: Dataset[_]): SwUnaryModel[I, O, M]

    Permalink
    Definition Classes
    SwUnaryEstimator → Estimator
  21. def fit(dataset: Dataset[_], paramMaps: Array[ParamMap]): Seq[SwUnaryModel[I, O, M]]

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

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

    Permalink
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" ) @varargs()
  24. final def get[T](param: Param[T]): Option[T]

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

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

    Permalink
    Definition Classes
    Params
  27. final def getInputFeature[T <: FeatureType](i: Int): Option[FeatureLike[T]]

    Permalink
    Definition Classes
    InputParams
  28. final def getInputFeatures(): Array[OPFeature]

    Permalink
    Definition Classes
    InputParams
  29. final def getInputSchema(): StructType

    Permalink
    Definition Classes
    OpPipelineStageParams
  30. final def getMetadata(): Metadata

    Permalink
    Definition Classes
    OpPipelineStageParams
  31. final def getOrDefault[T](param: Param[T]): T

    Permalink
    Definition Classes
    Params
  32. def getOutput(): FeatureLike[O]

    Permalink
    Definition Classes
    OpPipelineStage1 → OpPipelineStageBase
  33. final def getOutputFeatureName: String

    Permalink
    Definition Classes
    OpPipelineStage
  34. def getParam(paramName: String): Param[Any]

    Permalink
    Definition Classes
    Params
  35. def getSparkMlStage(): Option[E]

    Permalink
    Definition Classes
    SparkWrapperParams
  36. def getStageSavePath(): Option[String]

    Permalink
    Definition Classes
    SparkWrapperParams
  37. final def getTransientFeature(i: Int): Option[TransientFeature]

    Permalink
    Definition Classes
    InputParams
  38. final def getTransientFeatures(): Array[TransientFeature]

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def in1: TransientFeature

    Permalink
    Attributes
    protected
    Definition Classes
    HasIn1
  43. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  44. final def inputAsArray(in: InputFeatures): Array[OPFeature]

    Permalink
    Definition Classes
    OpPipelineStage1 → InputParams
  45. val inputParamName: String

    Permalink

    name of spark parameter that sets the second input column

  46. final def isDefined(param: Param[_]): Boolean

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  50. def log: Logger

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  62. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  65. def onGetMetadata(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OpPipelineStageParams
  66. def onSetInput(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OpPipelineStageBase
  67. val operationName: String

    Permalink

    unique name of the operation this stage performs

    unique name of the operation this stage performs

    Definition Classes
    SwUnaryEstimator → OpPipelineStageBase
  68. final def outputAsArray(out: OutputFeatures): Array[OPFeature]

    Permalink
    Definition Classes
    OpPipelineStage → OpPipelineStageBase
  69. def outputFeatureUid: String

    Permalink
    Attributes
    protected[com.salesforce.op]
    Definition Classes
    OpPipelineStage1 → OpPipelineStage
  70. def outputIsResponse: Boolean

    Permalink
    Definition Classes
    OpPipelineStage
  71. val outputParamName: String

    Permalink

    name of spark parameter that sets the first output column

  72. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  73. def save(path: String): Unit

    Permalink
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  74. final def set(paramPair: ParamPair[_]): SwUnaryEstimator.this.type

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

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

    Permalink
    Definition Classes
    Params
  77. final def setDefault(paramPairs: ParamPair[_]*): SwUnaryEstimator.this.type

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

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  79. final def setInput(features: InputFeatures): SwUnaryEstimator.this.type

    Permalink
    Definition Classes
    OpPipelineStageBase
  80. final def setInputFeatures[S <: OPFeature](features: Array[S]): SwUnaryEstimator.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    InputParams
  81. final def setMetadata(m: Metadata): SwUnaryEstimator.this.type

    Permalink
    Definition Classes
    OpPipelineStageParams
  82. def setOutputFeatureName(name: String): SwUnaryEstimator.this.type

    Permalink
    Definition Classes
    OpPipelineStage
  83. def setSparkMlStage(stage: Option[E]): SwUnaryEstimator.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    SparkWrapperParams
  84. def setStageSavePath(path: String): SwUnaryEstimator.this.type

    Permalink
    Definition Classes
    SparkWrapperParams
  85. final val sparkInputColParamNames: StringArrayParam

    Permalink
    Definition Classes
    SparkWrapperParams
  86. final val sparkMlStage: SparkStageParam[E]

    Permalink
    Definition Classes
    SparkWrapperParams
  87. final val sparkOutputColParamNames: StringArrayParam

    Permalink
    Definition Classes
    SparkWrapperParams
  88. final def stageName: String

    Permalink
    Definition Classes
    OpPipelineStageBase
  89. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    OpPipelineStageBase
  92. def transformSchema(schema: StructType, logging: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  93. implicit val tti: scala.reflect.api.JavaUniverse.TypeTag[I]

    Permalink

    type tag for input

  94. implicit val tto: scala.reflect.api.JavaUniverse.TypeTag[O]

    Permalink

    type tag for output

    type tag for output

    Definition Classes
    SwUnaryEstimator → OpPipelineStage1
  95. implicit val ttov: scala.reflect.api.JavaUniverse.TypeTag[O.Value]

    Permalink

    type tag for output value

    type tag for output value

    Definition Classes
    SwUnaryEstimator → OpPipelineStage1
  96. val uid: String

    Permalink

    stage uid

    stage uid

    Definition Classes
    SwUnaryEstimator → 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( ... )
  100. final def write: MLWriter

    Permalink
    Definition Classes
    OpPipelineStageBase → MLWritable

Inherited from SparkWrapperParams[E]

Inherited from OpPipelineStage1[I, O]

Inherited from HasIn1

Inherited from OpPipelineStage[O]

Inherited from OpPipelineStageBase

Inherited from MLWritable

Inherited from OpPipelineStageParams

Inherited from InputParams

Inherited from Estimator[SwUnaryModel[I, O, 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