Target

class Target(val field: Option[String], val optype: Option[OpType], val castInteger: Option[CastInteger], val min: Option[Double], val max: Option[Double], val rescaleConstant: Double, val rescaleFactor: Double, val targetValues: Array[TargetValue]) 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

Value parameters:
castInteger

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

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

max

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

min

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

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.

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.

trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def categories: Array[Any]
def defaultValue: Option[Double]
def displayValue(value: Any): Option[String]
def postPredictedValue(predictedValue: Double): Double
def priorProbabilities: Map[Any, Double]

Inherited methods

Inherited from:
HasExtensions
def hasExtensions: Boolean
Inherited from:
HasExtensions

Concrete fields

lazy val displayValues: Map[Any, String]
val field: Option[String]
val max: Option[Double]
val min: Option[Double]
val optype: Option[OpType]
lazy val priorPredictedValue: Any
val rescaleConstant: Double
val rescaleFactor: Double