Java 类weka.core.pmml.DerivedFieldMetaInfo 实例源码

项目:repo.kmeanspp.silhouette_score    文件:NeuralNetwork.java   
protected NeuralInput(Element input, MiningSchema miningSchema) throws Exception {
  m_ID = input.getAttribute("id");

  NodeList fL = input.getElementsByTagName("DerivedField");
  if (fL.getLength() != 1) {
    throw new Exception("[NeuralInput] expecting just one derived field!");
  }

  Element dF = (Element)fL.item(0);
  Instances allFields = miningSchema.getFieldsAsInstances();
  ArrayList<Attribute> fieldDefs = new ArrayList<Attribute>();
  for (int i = 0; i < allFields.numAttributes(); i++) {
    fieldDefs.add(allFields.attribute(i));
  }
  m_field = new DerivedFieldMetaInfo(dF, fieldDefs, miningSchema.getTransformationDictionary());
}
项目:autoweka    文件:NeuralNetwork.java   
protected NeuralInput(Element input, MiningSchema miningSchema) throws Exception {
  m_ID = input.getAttribute("id");

  NodeList fL = input.getElementsByTagName("DerivedField");
  if (fL.getLength() != 1) {
    throw new Exception("[NeuralInput] expecting just one derived field!");
  }

  Element dF = (Element)fL.item(0);
  Instances allFields = miningSchema.getFieldsAsInstances();
  ArrayList<Attribute> fieldDefs = new ArrayList<Attribute>();
  for (int i = 0; i < allFields.numAttributes(); i++) {
    fieldDefs.add(allFields.attribute(i));
  }
  m_field = new DerivedFieldMetaInfo(dF, fieldDefs, miningSchema.getTransformationDictionary());
}
项目:umple    文件:NeuralNetwork.java   
protected NeuralInput(Element input, MiningSchema miningSchema) throws Exception {
  m_ID = input.getAttribute("id");

  NodeList fL = input.getElementsByTagName("DerivedField");
  if (fL.getLength() != 1) {
    throw new Exception("[NeuralInput] expecting just one derived field!");
  }

  Element dF = (Element)fL.item(0);
  Instances allFields = miningSchema.getFieldsAsInstances();
  ArrayList<Attribute> fieldDefs = new ArrayList<Attribute>();
  for (int i = 0; i < allFields.numAttributes(); i++) {
    fieldDefs.add(allFields.attribute(i));
  }
  m_field = new DerivedFieldMetaInfo(dF, fieldDefs, miningSchema.getTransformationDictionary());
}