Package pattern.datafield

Examples of pattern.datafield.CategoricalDataField


          .getAttribute("coefficient"));
      pred = new NumericPredictor(name, coefficient, exponent);
    } else if ("CategoricalPredictor".equals(node.getNodeName())) {
      // <CategoricalPredictor name="species" value="setosa"
      // coefficient="0"/>
      CategoricalDataField df = (CategoricalDataField) schema.get(name);
      Integer value = df.categories.indexOf(node.getAttribute("value"));
      Double coefficient = Double.valueOf(node
          .getAttribute("coefficient"));
      pred = new CategoricalPredictor(name, coefficient, value);
    } else {
View Full Code Here

TOP

Related Classes of pattern.datafield.CategoricalDataField

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.