|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.io.BaseStorable
de.fu_berlin.ties.classify.Prediction
de.fu_berlin.ties.classify.winnow.WinnowPrediction
public class WinnowPrediction
A prediction that also stores a raw score (activation value) and a sigmoid
score, as calculated by the Winnow
algorithm. The pR
is never set by this class.
Field Summary | |
---|---|
static String |
KEY_RAW
Serialization key for the predicted class. |
static String |
KEY_SIGMOID
Serialization key for the source identifier. |
Fields inherited from class de.fu_berlin.ties.classify.Prediction |
---|
KEY_PR, KEY_PROB, KEY_SOURCE, KEY_TYPE |
Constructor Summary | |
---|---|
WinnowPrediction(FieldMap fieldMap)
Creates a new instance from a field map, fulfilling the Storable contract. |
|
WinnowPrediction(String predicted,
double prob,
float raw,
float sigmoid)
Creates a new instance, setting the evaluation status to EvalStatus.UNKNOWN . |
|
WinnowPrediction(String predicted,
double prob,
float raw,
float sigmoid,
EvalStatus status)
Creates a new instance, without setting a source ID. |
|
WinnowPrediction(String predicted,
String sourceID,
double prob,
float raw,
float sigmoid,
EvalStatus status)
Creates a new instance. |
Method Summary | |
---|---|
float |
getRawScore()
Returns the raw score (activation value) of this prediction. |
float |
getSigmoidScore()
Returns the sigmoid score
(activation value) of this prediction. |
FieldMap |
storeFields()
Stores all relevant fields of this object in a field map for serialization. |
Methods inherited from class de.fu_berlin.ties.classify.Prediction |
---|
addProb, equals, getEvalStatus, getProbability, getSource, getType, hashCode, probCount, removeProb, setEvalStatus, setSource |
Methods inherited from class de.fu_berlin.ties.io.BaseStorable |
---|
toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String KEY_RAW
public static final String KEY_SIGMOID
Constructor Detail |
---|
public WinnowPrediction(FieldMap fieldMap)
Storable
contract.
fieldMap
- map containing the serialized fieldspublic WinnowPrediction(String predicted, double prob, float raw, float sigmoid)
EvalStatus.UNKNOWN
.
predicted
- the predicted typeprob
- the probability of the prediction (must be in the range from
0.0 to 1.0; or -1 if this is a confirmed prediction or an answer key)raw
- the raw score (activation value) of this predictionsigmoid
- the sigmoid
score
(activation value) of this prediction; must be a value in the
range from 0 to 1public WinnowPrediction(String predicted, double prob, float raw, float sigmoid, EvalStatus status)
predicted
- the predicted typeprob
- the probability of the prediction (must be in the range from
0.0 to 1.0; or -1 if this is a confirmed prediction or an answer key)raw
- the raw score (activation value) of this predictionsigmoid
- the sigmoid
score
(activation value) of this prediction; must be a value in the
range from 0 to 1status
- the evaluation status of this
instancepublic WinnowPrediction(String predicted, String sourceID, double prob, float raw, float sigmoid, EvalStatus status)
predicted
- the predicted typesourceID
- an identifier of the source of this prediction (e.g., the
file name), might be null
prob
- the probability of the prediction (must be in the range from
0.0 to 1.0; or -1 if this is a confirmed prediction or an answer key)raw
- the raw score (activation value) of this predictionsigmoid
- the sigmoid
score
(activation value) of this prediction; must be a value in the
range from 0 to 1status
- the evaluation status of this
instanceMethod Detail |
---|
public float getRawScore()
public float getSigmoidScore()
sigmoid score
(activation value) of this prediction.
public FieldMap storeFields()
FieldMap.createObject(Class)
on the created
field map.
storeFields
in interface Storable
storeFields
in class Prediction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |