程序包 weka.core.pmml

类 MappingInfo

java.lang.Object
weka.core.pmml.MappingInfo
所有已实现的接口:
Serializable

public class MappingInfo extends Object implements Serializable
Class that maintains the mapping between incoming data set structure and that of the mining schema.
版本:
$Revision: 6464 $
作者:
Mark Hall (mhall{[at]}pentaho{[dot]}com
另请参阅:
  • 字段详细资料

    • UNKNOWN_NOMINAL_VALUE

      public static final int UNKNOWN_NOMINAL_VALUE
      Index for incoming nominal values that are not defined in the mining schema.
      另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • instanceToSchema

      public double[] instanceToSchema(Instance inst, MiningSchema miningSchema) throws Exception
      Convert an 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 convert
      miningSchema - the mining schema incoming instance attributes
      返回:
      an array of doubles that are values from the incoming Instances, correspond to the format of the mining schema and have had missing values, outliers etc. dealt with.
      抛出:
      Exception - if something goes wrong
    • getFieldsMappingString

      public String getFieldsMappingString()
      Get a textual description of them mapping between mining schema fields and incoming data fields.
      返回:
      a description of the fields mapping as a String