Packages

class Target extends PmmlElement

Note that castInteger, min, max, rescaleConstant and rescaleFactor only apply to models of type regression. Furthermore, they must be applied in sequence, which is:

min and max rescaleFactor rescaleConstant castInteger

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Target
  2. PmmlElement
  3. Serializable
  4. HasExtensions
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Target(field: Option[String], optype: Option[OpType], castInteger: Option[CastInteger], min: Option[Double], max: Option[Double], rescaleConstant: Double = 0.0, rescaleFactor: Double = 1.0, targetValues: Array[TargetValue] = Array.empty)

    field

    must refer to a name of a DataField or DerivedField. It can be absent when the model is used inside a Segment of a MiningModel and does not have a real target field in the input data

    optype

    When Target specifies optype then it overrides the optype attribute in a corresponding MiningField, if it exists. If the target does not specify optype then the MiningField is used as default. And, in turn, if the MiningField does not specify an optype, it is taken from the corresponding DataField. In other words, a MiningField overrides a DataField, and a Target overrides a MiningField.

    castInteger

    If a regression model should predict integers, use the attribute castInteger to control how decimal places should be handled.

    min

    If min is present, the predicted value will be the value of min if it is smaller than that.

    max

    If max is present, the predicted value will be max if it is larger than that.

    rescaleConstant

    can be used for simple rescale of the predicted value: First off, the predicted value is multiplied by rescaleFactor.

    rescaleFactor

    after that, rescaleConstant is added to the predicted value.

    targetValues

    In classification models, TargetValue is required. For regression models, TargetValue is only optional.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val castInteger: Option[CastInteger]
  6. def categories: Array[DataVal]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def defaultValue: Option[Double]
  9. def displayValue(value: DataVal): Option[String]
  10. lazy val displayValues: Map[DataVal, String]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def extensions: Seq[Extension]
    Definition Classes
    HasExtensions
  14. val field: Option[String]
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def hasExtensions: Boolean
    Definition Classes
    HasExtensions
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val max: Option[Double]
  20. val min: Option[Double]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. val optype: Option[OpType]
  25. def postPredictedValue(predictedValue: Double): Double
  26. lazy val priorPredictedValue: DataVal
  27. def priorProbabilities: Map[DataVal, Double]
  28. val rescaleConstant: Double
  29. val rescaleFactor: Double
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. val targetValues: Array[TargetValue]
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from PmmlElement

Inherited from Serializable

Inherited from HasExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped