Class

ai.deepsense.deeplang.params.wrappers.spark

ChoiceParamWrapper

Related Doc: package spark

Permalink

class ChoiceParamWrapper[P <: org.apache.spark.ml.param.Params, T <: Choice] extends ChoiceParam[T] with SparkParamWrapper[P, String, T]

Linear Supertypes
SparkParamWrapper[P, String, T], ChoiceParam[T], AbstractChoiceParam[T, T], Param[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChoiceParamWrapper
  2. SparkParamWrapper
  3. ChoiceParam
  4. AbstractChoiceParam
  5. Param
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChoiceParamWrapper(name: String, description: Option[String], sparkParamGetter: (P) ⇒ org.apache.spark.ml.param.Param[String])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T])

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ->(value: T): ParamPair[T]

    Permalink
    Definition Classes
    Param
  4. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  6. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Param
  7. def choiceFromJson(chosenLabel: String, jsValue: JsValue, graphReader: GraphReader): T

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractChoiceParam
  8. val choiceInstances: Seq[T]

    Permalink
    Definition Classes
    AbstractChoiceParam
  9. lazy val choiceInstancesByName: Map[String, T]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractChoiceParam
  10. def choiceToJson(value: T): JsObject

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractChoiceParam
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def constraints: String

    Permalink
    Definition Classes
    Param
  13. def convert(value: T)(schema: StructType): String

    Permalink

    Convert deeplang parameter value to wrapped Spark parameter value.

    Convert deeplang parameter value to wrapped Spark parameter value.

    value

    deeplang parameter value

    schema

    DataFrame schema, used in column selectors to extract column names

    returns

    Spark parameter value

    Definition Classes
    ChoiceParamWrapperSparkParamWrapper
  14. def convertAny(value: Any)(schema: StructType): String

    Permalink
    Definition Classes
    SparkParamWrapper
  15. val description: Option[String]

    Permalink
    Definition Classes
    ChoiceParamWrapperChoiceParamParam
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Param → AnyRef → Any
  18. def extraJsFields: Map[String, JsValue]

    Permalink

    Subclasses should overwrite this method if they want to add custom fields to json description.

    Subclasses should overwrite this method if they want to add custom fields to json description.

    Definition Classes
    AbstractChoiceParamParam
  19. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Param → AnyRef → Any
  22. val isGriddable: Boolean

    Permalink
    Definition Classes
    Param
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val name: String

    Permalink
    Definition Classes
    ChoiceParamWrapperChoiceParamParam
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def nestedWrappers: Seq[SparkParamWrapper[_, _, _]]

    Permalink

    returns

    Wrappers for nested parameters

    Definition Classes
    SparkParamWrapper
  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. val parameterType: ParameterType.Value

    Permalink
    Definition Classes
    ChoiceParamParam
  30. def replicate(name: String): ChoiceParamWrapper[P, T]

    Permalink

    Used to extract public parameters in custom transformer.

    Used to extract public parameters in custom transformer.

    name

    name of replicated parameter

    returns

    replicated parameter

    Definition Classes
    ChoiceParamWrapperChoiceParamParam
  31. def serializeDefault(choice: T): JsValue

    Permalink

    Describes default serialization of default values.

    Describes default serialization of default values.

    Attributes
    protected
    Definition Classes
    ChoiceParamParam
  32. def sparkParam(sparkEntity: org.apache.spark.ml.param.Params): org.apache.spark.ml.param.Param[String]

    Permalink

    This method extracts wrapped Spark parameter from Params, using a function defined as sparkParamGetter.

    This method extracts wrapped Spark parameter from Params, using a function defined as sparkParamGetter. The method is used in ParamsWithSparkWrappers to get parameter values.

    sparkEntity

    Spark params

    returns

    Wrapped Spark parameter

    Definition Classes
    SparkParamWrapper
  33. val sparkParamGetter: (P) ⇒ org.apache.spark.ml.param.Param[String]

    Permalink

    This function should extract wrapped parameter from Spark params of type P.

    This function should extract wrapped parameter from Spark params of type P.

    Definition Classes
    ChoiceParamWrapperSparkParamWrapper
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. final def toJson(maybeDefault: Option[Any]): JsObject

    Permalink

    Describes json representation of this parameter.

    Describes json representation of this parameter.

    maybeDefault

    Optional default value of parameter. Should be of type Option[T], but we need to receive Any because Params have to use this method without knowing T.

    Definition Classes
    Param
  36. def toString(): String

    Permalink
    Definition Classes
    Param → AnyRef → Any
  37. def validate(value: T): Vector[DeepLangException]

    Permalink
    Definition Classes
    ChoiceParamParam
  38. def valueFromJsMap(jsMap: Map[String, JsValue], graphReader: GraphReader): T

    Permalink
    Attributes
    protected
    Definition Classes
    ChoiceParamAbstractChoiceParam
  39. def valueFromJson(jsValue: JsValue, graphReader: GraphReader): T

    Permalink
    Definition Classes
    AbstractChoiceParamParam
  40. def valueToJson(value: T): JsValue

    Permalink
    Definition Classes
    ChoiceParamParam
  41. final def wait(): Unit

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

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

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

Inherited from SparkParamWrapper[P, String, T]

Inherited from ChoiceParam[T]

Inherited from AbstractChoiceParam[T, T]

Inherited from Param[T]

Inherited from AnyRef

Inherited from Any

Ungrouped