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

📄 dataset.java

📁 用java实现的关联规则算法Apriori算法
💻 JAVA
字号:
package dragon.ml.seqmodel.data;/** * <p>The basic interface to be implemented by the user of this package for * providing training and test data to the learner.<p> * @author Sunita Sarawagi */public interface Dataset {    /**     * Moves the pointer to the position before the first sequence.     */    public void startScan();    /**     * Tests if the next sequence exists     * @return true if next sequence exists     */    public boolean hasNext();    /**     * Reads out the next sequence     * @return the next sequence if any, otherwise null     */    public DataSequence next();    /**     * Gets the number of unique labels. If there are 4 original labels and the markov chain is of the second order, this method returns 16.     * @return the number of unique labels.     */    public int getLabelNum();    /**     * Gets the number of original unique labels no matter what order the markov chain is.     * @return the number of original unique labels no matter what order the markov chain is.     */    public int getOriginalLabelNum();    /**     * Gets the order of the markov chain     * @return the order of the markov chain     */    public int getMarkovOrder();    /**     * Gets the number of sequences in the dataset     * @return the number of sequences in the dataset     */    public int size();};

⌨️ 快捷键说明

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