public class MiningFieldMetaInfo extends FieldMetaInfo implements 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 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(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.
|
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.
|
String |
toString()
Return a textual representation of this MiningField.
|
getFieldName, getOptype
protected weka.core.pmml.MiningFieldMetaInfo.Outlier m_outlierTreatmentMethod
protected double m_lowValue
protected double m_highValue
protected weka.core.pmml.MiningFieldMetaInfo.Missing m_missingValueTreatmentMethod
protected String m_missingValueReplacementNominal
protected double m_missingValueReplacementNumeric
protected FieldMetaInfo.Optype m_optypeOverride
protected int m_index
protected double m_importance
protected void setMiningSchemaInstances(Instances miningSchemaI)
miningSchemaI
- the mining schema as an Instances objectpublic weka.core.pmml.MiningFieldMetaInfo.Usage getUsageType()
public String toString()
public void setIndex(int index)
index
- the index of the attribute in the mining schema Instances
that this field representspublic String getName()
public weka.core.pmml.MiningFieldMetaInfo.Outlier getOutlierTreatmentMethod()
public weka.core.pmml.MiningFieldMetaInfo.Missing getMissingValueTreatmentMethod()
public double applyMissingValueTreatment(double value) throws Exception
value
- the incoming value to apply the treatment toException
- if there is a problempublic double applyOutlierTreatment(double value) throws Exception
value
- the incoming value to apply the treatment toException
- if there is a problempublic Attribute getFieldAsAttribute()
getFieldAsAttribute
in class FieldMetaInfo
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.