classificationi.java
来自「用于multivariate时间序列分类」· Java 代码 · 共 93 行
JAVA
93 行
package tclass; import java.io.*; /** * Everything related to the classification of a particular stream or * anything else. Includes information about the classification * real or predicted. * * * @author Waleed Kadous * @version $Id: ClassificationI.java,v 1.1.1.1 2002/06/28 07:36:16 waleed Exp $ */public interface ClassificationI extends Serializable, Cloneable { /** * A special class, indicating that the current instance * that this class is associated with doesn't actually have a class. */ static final int UNCLASSIFIED = -1; /** * Returns true if the real class is known. * * @return <code>true</code> if the class of this stream is known. * */ public boolean isRealClassDefined(); /** * Returns true if the predicted class is known. * * @return <code>true</code> if the class of this stream is known. * */ public boolean isPredictedClassDefined(); /** * Gets the real class * * @return An int identifying this class which can be interpreted * using the DomainDesc object. -1 if the class is not defined. */ public int getRealClass(); /** * Gets the predicted class * * @return An int identifying this class which can be interpreted * using the DomainDesc object. -1 if not defined. */ public int getPredictedClass(); /** * If the classifier provides further information about confidence * of classification, it can be accessed through here. * */ public float getPredictedClassConfidence(); /** * Set the real class * * @param classlabel The new real class */ public void setRealClass(int classlabel); /** * Set the predicted class * * @param classlabel The new predicted class */ public void setPredictedClass(int classlabel); /** * Some classifiers, when making a prediction about an instance's class * also give a confidence of that prediction. This allows the confidence * to be set * * @see #getPredictedClassConfidence() */ public void setPredictedClassConfidence(float confidence); public Object clone(); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?