All Packages Class Hierarchy This Package Previous Next Index
Class jsvm.Classification
java.lang.Object
|
+----jsvm.Classification
- public class Classification
- extends Object
- implements Serializable
Data structure for storing the confidence value when an
example is classified.
- Version:
- $Id$
- Author:
- Heloise Hse (hwawen@eecs.berkeley.edu)
-
Classification(String, double)
- Creates an instance with type
type
and confidence value
confidence
.
-
getConfidence()
-
-
getType()
-
-
setConfidence(double)
- Sets the confidence value.
-
setType(String)
- Sets the name of the classifier.
Classification
public Classification(String type,
double confidence)
- Creates an instance with type
type
and confidence value
confidence
.
- Parameters:
- type - name of the model
- confidence - value represents how confident the
algorithm thinks that the example
should be classified as
type
model.
getConfidence
public double getConfidence()
- Returns:
- The confidence value
setConfidence
public void setConfidence(double d)
- Sets the confidence value.
- Parameters:
- d - The confidence value.
getType
public String getType()
- Returns:
- The name of the classifier.
setType
public void setType(String s)
- Sets the name of the classifier.
- Parameters:
- s - The name of the classifier.
All Packages Class Hierarchy This Package Previous Next Index