Package shared

Examples of shared.AttrValue


   * @param instance
   * @param performance
   */
  protected void labelInstance(Instance instance, AttrInfo labelInfo,
      double performance) {
    AttrValue perfLabel = new AttrValue();
    labelInfo.set_nominal_string(perfLabel, perfClasses.get(PredictorGenerators
        .classifyPerformance(perfBorders, performance)), true);
    instance.set_label(perfLabel);
  }
View Full Code Here


        throw new IllegalArgumentException("Attribute '" + confEntry.getKey()
            + "' could not be found in attrbute map!");
      }

      AttrInfo attrInfo = attrInfos.getFirstValue();
      AttrValue val = new AttrValue();

      if (attrInfo instanceof NominalAttrInfo) {
        attrInfo.set_nominal_string(val, confEntry.getValue().toString(), true);
      } else if (attrInfo instanceof RealAttrInfo) {
        attrInfo.set_real_val(val,
View Full Code Here

   */
  static void setMissingAttribute(Instance instance,
      Pair<AttrInfo, Integer> attrInfos) {
    AttrInfo info = attrInfos.getFirstValue();
    int attribIndex = attrInfos.getSecondValue();
    AttrValue val = new AttrValue();

    if (info instanceof NominalAttrInfo) {
      info.set_nominal_string(val, MISSING_NOM_VAL, true);
    } else if (info instanceof RealAttrInfo) {
      info.set_real_val(val, MISSING_NUM_VAL);
View Full Code Here

TOP

Related Classes of shared.AttrValue

Copyright © 2018 www.massapicom. 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.