Class

org.pmml4s.transformations

NormDiscrete

Related Doc: package transformations

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    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 categories: Array[Any]

    Permalink
    Definition Classes
    Expression
  6. def child: FieldRef

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

    Permalink
    Definition Classes
    UnaryExpressionExpression
  8. def clone(): AnyRef

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

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

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

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

    Permalink

    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
  13. def eval(value: Any): Any

    Permalink
    Definition Classes
    Expression
  14. def extensions: Seq[Extension]

    Permalink
    Definition Classes
    HasExtensions
  15. val field: Field

    Permalink
    Definition Classes
    NormDiscreteFieldExpression
  16. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    FieldExpressionExpression
  19. def hasExtensions: Boolean

    Permalink
    Definition Classes
    HasExtensions
  20. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  22. val mapMissingTo: Option[Double]

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. val value: Any

    Permalink
  29. final def wait(): Unit

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

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

    Permalink
    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