Skip navigation links
com.sigmadynamics.sdo.util
Class PredictionContribution
java.lang.Object
com.sigmadynamics.sdo.util.PredictionContribution
-
public class PredictionContribution
- extends java.lang.Object
This class represents a contribution of a model attribute to the score.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredictionContribution
public PredictionContribution(Path attribute,
AnalysisDatePart datePart,
java.lang.Object value,
double correlation)
getAttributeName
public java.lang.String getAttributeName()
-
- Returns:
- Returns a raw model attribute name. For example, "customer.customerKey"
getAttributeNameForDisplay
public java.lang.String getAttributeNameForDisplay()
-
- Returns:
- Returns a friendly model attribute name. For example, "Customer Key"
getDatePart
public AnalysisDatePart getDatePart()
-
- Returns:
- Returns a part of the date/time attribute that contributed to the prediction. For all other attributes returns
null
.
getCorrelation
public double getCorrelation()
-
- Returns:
- Returns the correlation, a real number between -1 and 1 inclusive.
getValue
public java.lang.Object getValue()
-
- Returns:
- Returns the value, which can be either String, Integer, Double or Long.
Skip navigation links
Copyright © 2010, 2011, Oracle. All rights reserved.