Package weka.core

Examples of weka.core.FastVector.addElement()


      switch (attributeTypes[i]) {
      case Attribute.NOMINAL:
  attribInfo.addElement(new Attribute(attribName, nominalStrings[i]));
  break;
      case Attribute.NUMERIC:
  attribInfo.addElement(new Attribute(attribName));
  break;
      case Attribute.STRING:
  Attribute att = new Attribute(attribName, (FastVector) null);
  attribInfo.addElement(att);
  for (int n = 0; n < nominalStrings[i].size(); n++) {
View Full Code Here


      case Attribute.NUMERIC:
  attribInfo.addElement(new Attribute(attribName));
  break;
      case Attribute.STRING:
  Attribute att = new Attribute(attribName, (FastVector) null);
  attribInfo.addElement(att);
  for (int n = 0; n < nominalStrings[i].size(); n++) {
    att.addStringValue((String) nominalStrings[i].elementAt(n));
  }
  break;
      case Attribute.DATE:
View Full Code Here

  for (int n = 0; n < nominalStrings[i].size(); n++) {
    att.addStringValue((String) nominalStrings[i].elementAt(n));
  }
  break;
      case Attribute.DATE:
  attribInfo.addElement(new Attribute(attribName, (String)null));
  break;
      default:
  throw new Exception("Unknown attribute type");
      }
    }
View Full Code Here

          "missing";
   

    FastVector newVector = new FastVector(11);

    newVector.addElement(new Option(string1, "N", 1,
            "-N <required number of rules output>"));
    newVector.addElement(new Option(stringType, "T", 1,
            "-T <0=confidence | 1=lift | "
            +"2=leverage | 3=Conviction>"));
    newVector.addElement(new Option(string2, "C", 1,
View Full Code Here

    FastVector newVector = new FastVector(11);

    newVector.addElement(new Option(string1, "N", 1,
            "-N <required number of rules output>"));
    newVector.addElement(new Option(stringType, "T", 1,
            "-T <0=confidence | 1=lift | "
            +"2=leverage | 3=Conviction>"));
    newVector.addElement(new Option(string2, "C", 1,
            "-C <minimum metric score of a rule>"));
    newVector.addElement(new Option(string3 + string4, "D", 1,
View Full Code Here

    newVector.addElement(new Option(string1, "N", 1,
            "-N <required number of rules output>"));
    newVector.addElement(new Option(stringType, "T", 1,
            "-T <0=confidence | 1=lift | "
            +"2=leverage | 3=Conviction>"));
    newVector.addElement(new Option(string2, "C", 1,
            "-C <minimum metric score of a rule>"));
    newVector.addElement(new Option(string3 + string4, "D", 1,
            "-D <delta for minimum support>"));
    newVector.addElement(new Option("\tUpper bound for minimum support. "
            +"(default = 1.0)", "U", 1,
View Full Code Here

    newVector.addElement(new Option(stringType, "T", 1,
            "-T <0=confidence | 1=lift | "
            +"2=leverage | 3=Conviction>"));
    newVector.addElement(new Option(string2, "C", 1,
            "-C <minimum metric score of a rule>"));
    newVector.addElement(new Option(string3 + string4, "D", 1,
            "-D <delta for minimum support>"));
    newVector.addElement(new Option("\tUpper bound for minimum support. "
            +"(default = 1.0)", "U", 1,
             "-U <upper bound for minimum support>"));
    newVector.addElement(new Option(string5, "M", 1,
View Full Code Here

            +"2=leverage | 3=Conviction>"));
    newVector.addElement(new Option(string2, "C", 1,
            "-C <minimum metric score of a rule>"));
    newVector.addElement(new Option(string3 + string4, "D", 1,
            "-D <delta for minimum support>"));
    newVector.addElement(new Option("\tUpper bound for minimum support. "
            +"(default = 1.0)", "U", 1,
             "-U <upper bound for minimum support>"));
    newVector.addElement(new Option(string5, "M", 1,
            "-M <lower bound for minimum support>"));
    newVector.addElement(new Option(string6 + string7, "S", 1,
View Full Code Here

    newVector.addElement(new Option(string3 + string4, "D", 1,
            "-D <delta for minimum support>"));
    newVector.addElement(new Option("\tUpper bound for minimum support. "
            +"(default = 1.0)", "U", 1,
             "-U <upper bound for minimum support>"));
    newVector.addElement(new Option(string5, "M", 1,
            "-M <lower bound for minimum support>"));
    newVector.addElement(new Option(string6 + string7, "S", 1,
            "-S <significance level>"));
    newVector.addElement(new Option(string8, "I", 0,
            "-I"));
View Full Code Here

    newVector.addElement(new Option("\tUpper bound for minimum support. "
            +"(default = 1.0)", "U", 1,
             "-U <upper bound for minimum support>"));
    newVector.addElement(new Option(string5, "M", 1,
            "-M <lower bound for minimum support>"));
    newVector.addElement(new Option(string6 + string7, "S", 1,
            "-S <significance level>"));
    newVector.addElement(new Option(string8, "I", 0,
            "-I"));
    newVector.addElement(new Option("\tRemove columns that contain "
            +"all missing values (default = no)"
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.