Package se.hb.jcp.ml
Interface IClassifierInformation
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
IClassificationNonconformityFunction,IClassifier,IClassProbabilityClassifier,IConformalClassifier,ISVMClassifier
- All Known Implementing Classes:
AverageClassificationNonconformityFunction,BogusClassProbabilityClassifier,ClassifierBase,ClassifierNonconformityFunctionBase,ClassProbabilityNonconformityFunctionBase,ConformalMultiProbabilisticClassifier,ExtremelyRandomizedTreesClassifier,HingeLossNonconformityFunction,InductiveConformalClassifier,kNearestSameClassNeighbourNonconformityFunction,LinearClassifier,MarginNonconformityFunction,RandomForestClassifier,SVMClassifier,SVMClassifier,SVMClassifier,SVMDistanceNonconformityFunction,TransductiveConformalClassifier
public interface IClassifierInformation extends java.io.SerializableSpecifies a set of information that every classifier should be able to provide. Contract for JCP use: 1. The methods implemented for this interface must be reentrant.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAttributeCount()Returns the number of attributes the classifier has been trained on.java.lang.Double[]getLabels()Returns the set of class labels the classifier has been trained on.booleanisTrained()Returns whether this classifier has been trained.cern.colt.matrix.DoubleMatrix1DnativeStorageTemplate()Returns a value of the DoubleMatrix1D derived class that is the native storage format for the classifier.
-
-
-
Method Detail
-
isTrained
boolean isTrained()
Returns whether this classifier has been trained.- Returns:
- Returns true if the classifier has been trained or false otherwise.
-
getAttributeCount
int getAttributeCount()
Returns the number of attributes the classifier has been trained on.- Returns:
- Returns the number of attributes the classifier has been trained on or -1 if the classifier has not been trained.
-
getLabels
java.lang.Double[] getLabels()
Returns the set of class labels the classifier has been trained on.- Returns:
- Returns the class labels the classifier has been trained on in increasing order (the index is the class id) or null if the classifier has not been trained.
-
nativeStorageTemplate
cern.colt.matrix.DoubleMatrix1D nativeStorageTemplate()
Returns a value of the DoubleMatrix1D derived class that is the native storage format for the classifier.- Returns:
- a value of the DoubleMatrix1D derived class of the native storage format for the classifier.
-
-