MiningField

class MiningField(val name: String, val usageType: UsageType, val opType: Option[OpType], val importance: Option[Double], val outliers: OutlierTreatmentMethod, val lowValue: Option[Double], val highValue: Option[Double], val missingValueReplacement: Option[Any], val missingValueTreatment: Option[MissingValueTreatment], val invalidValueTreatment: InvalidValueTreatment, val invalidValueReplacement: Option[Any]) extends HasUsageType with PmmlElement

MiningFields also define the usage of each field (active, supplementary, target, ...) as well as policies for treating missing, invalid or outlier values.

Value parameters:
importance

States the relative importance of the field.

invalidValueTreatment

Specifies how invalid input values are handled.

missingValueReplacement

If this attribute is specified then a missing input value is automatically replaced by the given value. That is, the model itself works as if the given value was found in the original input. For example the surrogate operator in TreeModel does not apply if the MiningField specifies a replacement value.

missingValueTreatment

This field is for information only.

name

Symbolic name of field, must refer to a field in the scope of the parent of the MiningSchema's model element.

opType

The attribute value overrides the corresponding value in the DataField. That is, a DataField can be used with different optypes in different models. For example, a 0/1 indicator could be used as a numeric input field in a regression model while the same field is used as a categorical field in a tree model.

trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

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

Tests whether this field is input, true for active and group that is used by the association model.

Tests whether this field is input, true for active and group that is used by the association model.

Inherited from:
HasUsageType
def isTarget: Boolean

Tests whether this field is target, true for target and predicted

Tests whether this field is target, true for target and predicted

Inherited from:
HasUsageType

Concrete fields

val highValue: Option[Double]
val importance: Option[Double]
val invalidValueReplacement: Option[Any]
val lowValue: Option[Double]
val missingValueReplacement: Option[Any]
val name: String
val opType: Option[OpType]