⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractevaluator.java

📁 dragontoolkit用于机器学习
💻 JAVA
字号:
package dragon.ml.seqmodel.evaluate;/** * <p>Abstract class of evaluation</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public abstract class AbstractEvaluator implements Evaluator{    protected int totalLabels;    protected int annotatedLabels;    protected int correctAnnotatedLabels;    public AbstractEvaluator() {    }    public int totalLabels(){        return totalLabels;    }    public int annotatedLabels(){        return annotatedLabels;    }    public int correctAnnotatedLabels(){        return correctAnnotatedLabels;    }    public double precision(){        return (double)correctAnnotatedLabels/annotatedLabels;    }    public double recall(){        return (double)correctAnnotatedLabels/totalLabels;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -