public class MiningFieldMetaInfo extends FieldMetaInfo implements java.io.Serializable
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value| Modifier and Type | Field and Description |
|---|---|
protected double |
m_highValue
outlier high value
|
protected double |
m_importance
importance (if defined)
|
protected int |
m_index
the index of the field in the mining schema Instances
|
protected double |
m_lowValue
outlier low value
|
protected java.lang.String |
m_missingValueReplacementNominal
actual missing value replacements (if specified)
|
protected double |
m_missingValueReplacementNumeric |
protected weka.core.pmml.MiningFieldMetaInfo.Missing |
m_missingValueTreatmentMethod
missing values treatment method
|
protected FieldMetaInfo.Optype |
m_optypeOverride
optype overrides (override data dictionary type - NOT SUPPORTED AT PRESENT)
|
protected weka.core.pmml.MiningFieldMetaInfo.Outlier |
m_outlierTreatmentMethod
outlier treatmemnt method
|
m_fieldName, m_optype| Constructor and Description |
|---|
MiningFieldMetaInfo(org.w3c.dom.Element field)
Constructs a new MiningFieldMetaInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
double |
applyMissingValueTreatment(double value)
Apply the missing value treatment method for this field.
|
double |
applyOutlierTreatment(double value)
Apply the outlier treatment method for this field.
|
Attribute |
getFieldAsAttribute()
Return this mining field as an Attribute.
|
weka.core.pmml.MiningFieldMetaInfo.Missing |
getMissingValueTreatmentMethod()
Get the missing value treatment method for this field.
|
java.lang.String |
getName()
Get the name of this field.
|
weka.core.pmml.MiningFieldMetaInfo.Outlier |
getOutlierTreatmentMethod()
Get the outlier treatment method used for this field.
|
weka.core.pmml.MiningFieldMetaInfo.Usage |
getUsageType()
Get the usage type of this field.
|
void |
setIndex(int index)
Set the index of this field in the mining schema Instances
|
protected void |
setMiningSchemaInstances(Instances miningSchemaI)
Set the Instances that represent the mining schema.
|
java.lang.String |
toString()
Return a textual representation of this MiningField.
|
getFieldName, getOptypeprotected weka.core.pmml.MiningFieldMetaInfo.Outlier m_outlierTreatmentMethod
protected double m_lowValue
protected double m_highValue
protected weka.core.pmml.MiningFieldMetaInfo.Missing m_missingValueTreatmentMethod
protected java.lang.String m_missingValueReplacementNominal
protected double m_missingValueReplacementNumeric
protected FieldMetaInfo.Optype m_optypeOverride
protected int m_index
protected double m_importance
public MiningFieldMetaInfo(org.w3c.dom.Element field)
throws java.lang.Exception
field - the Element that contains the field informationjava.lang.Exception - if there is a problem during constructionprotected void setMiningSchemaInstances(Instances miningSchemaI)
miningSchemaI - the mining schema as an Instances objectpublic weka.core.pmml.MiningFieldMetaInfo.Usage getUsageType()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setIndex(int index)
index - the index of the attribute in the mining schema Instances
that this field representspublic java.lang.String getName()
public weka.core.pmml.MiningFieldMetaInfo.Outlier getOutlierTreatmentMethod()
public weka.core.pmml.MiningFieldMetaInfo.Missing getMissingValueTreatmentMethod()
public double applyMissingValueTreatment(double value)
throws java.lang.Exception
value - the incoming value to apply the treatment tojava.lang.Exception - if there is a problempublic double applyOutlierTreatment(double value)
throws java.lang.Exception
value - the incoming value to apply the treatment tojava.lang.Exception - if there is a problempublic Attribute getFieldAsAttribute()
getFieldAsAttribute in class FieldMetaInfo