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
- Alphabetic
- By Inheritance
- Target
- PmmlElement
- Serializable
- HasExtensions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val castInteger: Option[CastInteger]
- def categories: Array[Any]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def defaultValue: Option[Double]
- def displayValue(value: Any): Option[String]
- lazy val displayValues: Map[Any, String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extensions: Seq[Extension]
- Definition Classes
- HasExtensions
- val field: Option[String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hasExtensions: Boolean
- Definition Classes
- HasExtensions
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val max: Option[Double]
- val min: Option[Double]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val optype: Option[OpType]
- def postPredictedValue(predictedValue: Double): Double
- lazy val priorPredictedValue: Any
- def priorProbabilities: Map[Any, Double]
- val rescaleConstant: Double
- val rescaleFactor: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val targetValues: Array[TargetValue]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)