Class

org.pmml4s.transformations

DerivedField

Related Doc: package transformations

Permalink

class DerivedField extends DataField with Expression with Clearable

Provides a common element for the various mappings. They can also appear at several places in the definition of specific models such as neural network or Naive Bayes models. Transformed fields have a name such that statistics and the model can refer to these fields.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DerivedField
  2. Clearable
  3. Expression
  4. Evaluator
  5. DataField
  6. PmmlElement
  7. HasExtensions
  8. AbstractField
  9. Field
  10. Attribute
  11. ValueIndexer
  12. HasIntervals
  13. HasValidValues
  14. HasInvalidValues
  15. HasMissingValues
  16. HasLabels
  17. HasOpType
  18. HasDataType
  19. DataTypeLike
  20. Serializable
  21. Serializable
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DerivedField(name: String, expr: Expression)

    Permalink
  2. new DerivedField(name: String, displayName: Option[String], dataType: DataType, opType: OpType, expr: Expression)

    Permalink
  3. new DerivedField(name: String, displayName: Option[String], dataType: DataType, opType: OpType, values: Array[Value], expr: Expression)

    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. var _attribute: Attribute

    Permalink

    An internal attribute could be changed.

    An internal attribute could be changed.

    Attributes
    protected
    Definition Classes
    AbstractField
  5. var _index: Int

    Permalink

    Index of the field in the input series.

    Index of the field in the input series.

    Attributes
    protected
    Definition Classes
    AbstractField
  6. var _referenced: Boolean

    Permalink

    A flag if the field is referenced in the model.

    A flag if the field is referenced in the model.

    Attributes
    protected
    Definition Classes
    AbstractField
  7. def accepts(other: DataType): Boolean

    Permalink

    Returns true if other is an acceptable input type for a function that expects this.

    Returns true if other is an acceptable input type for a function that expects this.

    Definition Classes
    DataTypeLike
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def attrType: AttributeType

    Permalink

    Attribute type.

    Attribute type.

    Definition Classes
    FieldAttribute
  10. def attribute: Attribute

    Permalink

    Attribute of the field.

    Attribute of the field.

    Definition Classes
    AbstractFieldField
  11. def categories: Array[Any]

    Permalink
    Definition Classes
    Expression
  12. def children: Array[Expression]

    Permalink
    Definition Classes
    DerivedFieldExpression
  13. def clear(): Unit

    Permalink
    Definition Classes
    DerivedFieldClearable
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. val dataType: DataType

    Permalink

    Returns the data type of field.

    Returns the data type of field.

    Definition Classes
    DerivedFieldDataFieldDataTypeLike
  16. def decode(index: Int): Any

    Permalink
    Definition Classes
    FieldValueIndexer
  17. def deeval(input: Any): Any

    Permalink
    Definition Classes
    DerivedFieldExpression
  18. val displayName: Option[String]

    Permalink

    Display name of the field.

    Display name of the field. None if it is not set.

    Definition Classes
    DerivedFieldDataFieldField
  19. def encode(value: Any): Double

    Permalink
    Definition Classes
    FieldValueIndexer
  20. def encode(series: Series): Double

    Permalink

    Encodes the value of the field in the input series.

    Encodes the value of the field in the input series.

    Definition Classes
    Field
  21. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    Expression
  25. val expr: Expression

    Permalink
  26. def extensions: Seq[Extension]

    Permalink
    Definition Classes
    HasExtensions
  27. def fieldType: DerivedField.type

    Permalink

    Field type.

    Field type.

    Definition Classes
    DerivedFieldDataFieldField
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def get(series: Series): Any

    Permalink

    Retrieve its value from the specified series, return null if missing

    Retrieve its value from the specified series, return null if missing

    Definition Classes
    DerivedFieldAbstractFieldField
  30. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    DerivedFieldExpression
  32. def getDouble(series: Series): Double

    Permalink

    Retrieve its value as double from the specified series, return Double.NaN if missing.

    Retrieve its value as double from the specified series, return Double.NaN if missing.

    Definition Classes
    Field
  33. def getLabel(value: Any): Option[String]

    Permalink
    Definition Classes
    FieldHasLabels
  34. def hasExtensions: Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. def index: Int

    Permalink

    Index of the field in the input series.

    Index of the field in the input series.

    Definition Classes
    AbstractFieldField
  37. def indexDefined: Boolean

    Permalink

    Tests if the index of this field is defined

    Tests if the index of this field is defined

    Definition Classes
    Field
  38. def index_=(i: Int): Unit

    Permalink

    Sets the index of this field.

    Sets the index of this field.

    Definition Classes
    AbstractFieldField
  39. val intervals: Array[Interval]

    Permalink
    Definition Classes
    DataFieldFieldHasIntervals
  40. def invalidValues: Set[Any]

    Permalink
    Definition Classes
    FieldHasInvalidValues
  41. def isBinary: Boolean

    Permalink

    Tests whether this field is binary, that is categorical and it contains exactly two valid values.

    Tests whether this field is binary, that is categorical and it contains exactly two valid values.

    Definition Classes
    FieldHasValidValues
  42. def isCategorical: Boolean

    Permalink

    Tests whether this field is categorical (nominal or ordinal).

    Tests whether this field is categorical (nominal or ordinal).

    Definition Classes
    HasOpType
  43. def isContinuous: Boolean

    Permalink

    Tests whether this field is continuous.

    Tests whether this field is continuous.

    Definition Classes
    HasOpType
  44. val isCyclic: Boolean

    Permalink
    Definition Classes
    DataField
  45. def isDataField: Boolean

    Permalink

    Tests if the field is a data field.

    Tests if the field is a data field.

    Definition Classes
    Field
  46. def isDate: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  47. def isDateTime: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  48. def isDerivedField: Boolean

    Permalink

    Tests if the field is a derived field.

    Tests if the field is a derived field.

    Definition Classes
    Field
  49. def isDouble: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  50. def isFloat: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  51. def isIn(value: Any): Boolean

    Permalink
    Definition Classes
    HasIntervals
  52. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  53. def isInvalidValue(value: Any): Boolean

    Permalink
    Definition Classes
    FieldHasInvalidValues
  54. def isMissing(series: Series): Boolean

    Permalink

    Tests if its value is missing from the specified series.

    Tests if its value is missing from the specified series.

    Definition Classes
    Field
  55. def isMissingValue(value: Any): Boolean

    Permalink
    Definition Classes
    FieldHasMissingValues
  56. def isMutable: Boolean

    Permalink
    Definition Classes
    FieldAttribute
  57. def isNominal: Boolean

    Permalink

    Tests whether this field is nominal.

    Tests whether this field is nominal.

    Definition Classes
    HasOpType
  58. def isNumeric: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  59. def isOrdinal: Boolean

    Permalink

    Tests whether this field is ordinal.

    Tests whether this field is ordinal.

    Definition Classes
    HasOpType
  60. def isReal: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  61. def isString: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  62. def isSysMissing(value: Any): Boolean

    Permalink
    Definition Classes
    HasMissingValues
  63. def isTime: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  64. def isTimestamp: Boolean

    Permalink
    Definition Classes
    DataTypeLike
  65. def isValidValue(value: Any): Boolean

    Permalink
    Definition Classes
    FieldHasValidValues
  66. def labels: Map[Any, String]

    Permalink
    Definition Classes
    FieldHasLabels
  67. def missingValues: Set[Any]

    Permalink
    Definition Classes
    FieldHasMissingValues
  68. val name: String

    Permalink

    Name of the field.

    Name of the field.

    Definition Classes
    DerivedFieldDataFieldField
  69. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  72. def numCategories: Int

    Permalink
    Definition Classes
    FieldHasValidValues
  73. val opType: OpType

    Permalink

    Operational type.

    Operational type.

    Definition Classes
    DerivedFieldDataFieldHasOpType
  74. def referenced: Boolean

    Permalink

    Tests if the field is referenced in the model element.

    Tests if the field is referenced in the model element.

    Definition Classes
    AbstractFieldField
  75. def referenced_=(r: Boolean): Unit

    Permalink

    Sets the referenced flag of the field.

    Sets the referenced flag of the field.

    Definition Classes
    AbstractFieldField
  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  77. val taxonomy: Option[String]

    Permalink
    Definition Classes
    DataField
  78. def toAttribute: Attribute

    Permalink
    Definition Classes
    FieldAttribute
  79. def toImmutable(): DerivedField.this.type

    Permalink

    Converts to an immutable attribute if it's mutable.

    Converts to an immutable attribute if it's mutable.

    Definition Classes
    AbstractFieldField
  80. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  81. def toVal(s: String): Any

    Permalink

    Converts a string to the corresponding value based on its data type.

    Converts a string to the corresponding value based on its data type.

    Definition Classes
    Field
    Exceptions thrown

    java.lang.NumberFormatException - If the string does not contain a parsable number if dataType is numeric

  82. def toValOption(s: String): Option[Any]

    Permalink

    Converts a string to the corresponding value based on its data type.

    Converts a string to the corresponding value based on its data type.

    returns

    None if any error occurs

    Definition Classes
    Field
  83. def validValues: Array[Any]

    Permalink
    Definition Classes
    FieldHasValidValues
  84. val values: Array[Value]

    Permalink
    Definition Classes
    DerivedFieldDataField
  85. def valuesAsString: String

    Permalink
    Definition Classes
    Attribute
  86. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. def write(series: Series, mutableSeries: MutableSeries, pos: Int): Any

    Permalink

Inherited from Clearable

Inherited from Expression

Inherited from Evaluator

Inherited from DataField

Inherited from PmmlElement

Inherited from HasExtensions

Inherited from AbstractField

Inherited from Field

Inherited from Attribute

Inherited from ValueIndexer

Inherited from HasIntervals

Inherited from HasValidValues

Inherited from HasInvalidValues

Inherited from HasMissingValues

Inherited from HasLabels

Inherited from HasOpType

Inherited from HasDataType

Inherited from DataTypeLike

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped