org.pmml4s.transformations

NormDiscrete

class NormDiscrete extends FieldExpression

Encode string values into numeric values in order to perform mathematical computations. For example, regression and neural network models often split categorical and ordinal fields into multiple dummy fields. This kind of normalization is supported in PMML by the element NormDiscrete.

An element (f, v) defines that the unit has value 1.0 if the value of input field f is v, otherwise it is 0.

The set of NormDiscrete instances which refer to a certain input field define a fan-out function which maps a single input field to a set of normalized fields.

If the input value is missing and the attribute mapMissingTo is not specified then the result is a missing value as well. If the input value is missing and the attribute mapMissingTo is specified then the result is the value of the attribute mapMissingTo.

Linear Supertypes
FieldExpression, UnaryExpression, Expression, Evaluator, PmmlElement, Serializable, Serializable, HasExtensions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NormDiscrete
  2. FieldExpression
  3. UnaryExpression
  4. Expression
  5. Evaluator
  6. PmmlElement
  7. Serializable
  8. Serializable
  9. HasExtensions
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NormDiscrete(field: Field, value: Any, mapMissingTo: Option[Double])

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 ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def categories: Array[Any]

    Definition Classes
    Expression
  8. def child: FieldRef

    Definition Classes
    FieldExpressionUnaryExpression
  9. final def children: Array[Expression]

    Definition Classes
    UnaryExpressionExpression
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def deeval(value: Any): Any

    Definition Classes
    Expression
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def eval(series: Series): Double

    Returns the result of evaluating this expression on a given input Series

    Returns the result of evaluating this expression on a given input Series

    Definition Classes
    NormDiscreteFieldExpressionExpressionEvaluator
  15. def eval(value: Any): Any

    Definition Classes
    Expression
  16. def extensions: Seq[Extension]

    Definition Classes
    HasExtensions
  17. val field: Field

    Definition Classes
    NormDiscreteFieldExpression
  18. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  20. def getDataField: Option[Field]

    Definition Classes
    FieldExpressionExpression
  21. def hasExtensions: Boolean

    Definition Classes
    HasExtensions
  22. def hashCode(): Int

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

    Definition Classes
    Any
  24. val mapMissingTo: Option[Double]

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

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

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

    Definition Classes
    AnyRef
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. val value: Any

  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FieldExpression

Inherited from UnaryExpression

Inherited from Expression

Inherited from Evaluator

Inherited from PmmlElement

Inherited from Serializable

Inherited from Serializable

Inherited from HasExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped