Examples of addStringValue()


Examples of weka.core.Attribute.addStringValue()

    }
   
    // add the default value (just in case it is some other value than one
    // of the bins
    if (m_defaultValueDefined) {
      tempAtt.addStringValue(m_defaultValue);
    }
   
    // add the map missing to value (just in case it is some other value than one
    // of the bins
    if (m_mapMissingDefined) {
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

    }
   
    // add the map missing to value (just in case it is some other value than one
    // of the bins
    if (m_mapMissingDefined) {
      tempAtt.addStringValue(m_mapMissingTo);
    }
   
    // now make this into a nominal attribute
    FastVector values = new FastVector();
    for (int i = 0; i < tempAtt.numValues(); i++) {
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

  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:
  attribInfo.addElement(new Attribute(attribName, (String)null));
  break;
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

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

Examples of weka.core.Attribute.addStringValue()

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

Examples of weka.core.Attribute.addStringValue()

        Attribute att = miningSchema.attribute(m_miningSchemaAttIndex);
        if (att.isString()) {
          // means that there were no Value elements defined in the
          // data dictionary (and hence the mining schema).
          // We add our value here.
          att.addStringValue(m_valueName);
        }
        m_valueIndex = att.indexOfValue(m_valueName);
        /*        for (int i = 0; i < att.numValues(); i++) {
          if (att.value(i).equals(m_valueName)) {
            m_valueIndex = i;
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

    ? new Attribute("temp", (ArrayList<String>)null)
    : new Attribute(m_fieldName + "_discretized(optype=continuous)");
     
    if (categorical) {
      for (DiscretizeBin d : m_bins) {
        tempAtt.addStringValue(d.getBinValue());
      }

      // add the default value (just in case it is some other value than one
      // of the bins
      if (m_defaultValueDefined) {
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

      }

      // add the default value (just in case it is some other value than one
      // of the bins
      if (m_defaultValueDefined) {
        tempAtt.addStringValue(m_defaultValue);
      }

      // add the map missing to value (just in case it is some other value than one
      // of the bins
      if (m_mapMissingDefined) {
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

      }

      // add the map missing to value (just in case it is some other value than one
      // of the bins
      if (m_mapMissingDefined) {
        tempAtt.addStringValue(m_mapMissingTo);
      }

      // now make this into a nominal attribute
      ArrayList<String> values = new ArrayList<String>();
      for (int i = 0; i < tempAtt.numValues(); i++) {
View Full Code Here

Examples of weka.core.Attribute.addStringValue()

                    attribInfo.add(new Attribute(attribName));
                    break;
                case Attribute.STRING:
                    Attribute att = new Attribute(attribName, (ArrayList<String>)null);
                    for (int n = 0; n < m_nominalStrings[i].size(); n++) {
                      att.addStringValue((String) m_nominalStrings[i].get(n));
                    }
                    attribInfo.add(att);
                    break;
                case Attribute.DATE:
                    attribInfo.add(new Attribute(attribName, (String)null));
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.