public class MappingInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_NOMINAL_VALUE
Index for incoming nominal values that are not defined in the mining
schema.
|
Constructor and Description |
---|
MappingInfo(Instances dataSet,
MiningSchema miningSchema,
Logger log) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldsMappingString()
Get a textual description of them mapping between mining schema fields and
incoming data fields.
|
double[] |
instanceToSchema(Instance inst,
MiningSchema miningSchema)
Convert an
Instance to an array of values that matches the
format of the mining schema. |
public static final int UNKNOWN_NOMINAL_VALUE
public MappingInfo(Instances dataSet, MiningSchema miningSchema, Logger log) throws java.lang.Exception
java.lang.Exception
public double[] instanceToSchema(Instance inst, MiningSchema miningSchema) throws java.lang.Exception
Instance
to an array of values that matches the
format of the mining schema. First maps raw attribute values and then
applies rules for missing values, outliers etc.inst
- the Instance
to convertminingSchema
- the mining schema incoming instance attributesjava.lang.Exception
- if something goes wrongpublic java.lang.String getFieldsMappingString()