water.score
Class RFScoreModel

java.lang.Object
  extended by water.score.ScoreModel
      extended by water.score.RFScoreModel

public class RFScoreModel
extends ScoreModel


Field Summary
 
Fields inherited from class water.score.ScoreModel
_colNames, _name
 
Method Summary
static RFScoreModel parse(PMMLParser pmml)
           
 double score(java.util.HashMap<java.lang.String,java.lang.Comparable> row)
          Score this model on the specified row of data, where the data is specified as a collection of K/V pairs - Values are one of String or Boolean or Number (or subclasses of Number)
 double score(int[] MAP, java.lang.String[] SS, double[] DS)
          Score this model on the specified row of data, where the data is specified as the members of arrays.
 
Methods inherited from class water.score.ScoreModel
columnMapping, uniqueClassName, xml2jname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static RFScoreModel parse(PMMLParser pmml)

score

public double score(java.util.HashMap<java.lang.String,java.lang.Comparable> row)
Description copied from class: ScoreModel
Score this model on the specified row of data, where the data is specified as a collection of K/V pairs - Values are one of String or Boolean or Number (or subclasses of Number)

Specified by:
score in class ScoreModel

score

public double score(int[] MAP,
                    java.lang.String[] SS,
                    double[] DS)
Description copied from class: ScoreModel
Score this model on the specified row of data, where the data is specified as the members of arrays. MAP is used to map between the SS/DS columns and the columns desired by the Model; this map can be made by a single call to columnMapping. SS/DS hold either String values (for enum/categorical data) or a primitive double. This format exchanges a HashMap lookup for a bare array access, and can be faster (perhaps much faster) for models that are alread quick to score.

Specified by:
score in class ScoreModel