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)

Constructor Index

 o Classification(String, double)
Creates an instance with type type and confidence value confidence.

Method Index

 o getConfidence()
 o getType()
 o setConfidence(double)
Sets the confidence value.
 o setType(String)
Sets the name of the classifier.

Constructors

 o 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.

Methods

 o getConfidence
public double getConfidence()
Returns:
The confidence value
 o setConfidence
public void setConfidence(double d)
Sets the confidence value.

Parameters:
d - The confidence value.
 o getType
public String getType()
Returns:
The name of the classifier.
 o 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