本文整理汇总了Java中ca.pfv.spmf.algorithms.frequentpatterns.hmine.AlgoHMine类的典型用法代码示例。如果您正苦于以下问题:Java AlgoHMine类的具体用法?Java AlgoHMine怎么用?Java AlgoHMine使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AlgoHMine类属于ca.pfv.spmf.algorithms.frequentpatterns.hmine包,在下文中一共展示了AlgoHMine类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runAlgorithm
import ca.pfv.spmf.algorithms.frequentpatterns.hmine.AlgoHMine; //导入依赖的package包/类
@Override
public void runAlgorithm(String[] parameters, String inputFile, String outputFile) throws IOException {
double minsup = getParamAsDouble(parameters[0]);
AlgoHMine algorithm = new AlgoHMine();
algorithm.runAlgorithm(inputFile, outputFile, minsup);
algorithm.printStats();
}
示例2: main
import ca.pfv.spmf.algorithms.frequentpatterns.hmine.AlgoHMine; //导入依赖的package包/类
@Test
public void main() {
NoExceptionAssertion.assertDoesNotThrow(() -> {
String input = "contextPasquier99.txt"; // the database
String output = ".//output.txt"; // the path for saving the frequent itemsets found
double minsup = 0.4; // 40% means a minsup of 2 transaction (we used a relative support)
// Applying the algorithm
AlgoHMine algorithm = new AlgoHMine();
algorithm.runAlgorithm(input, output, minsup);
algorithm.printStats();
});
}
示例3: main
import ca.pfv.spmf.algorithms.frequentpatterns.hmine.AlgoHMine; //导入依赖的package包/类
public static void main(String [] arg) throws IOException{
String input = fileToPath("contextPasquier99.txt"); // the database
String output = "C://frequent_itemsets.txt"; // the path for saving the frequent itemsets found
int minsup = 2; // means a minsup of 2 transaction (we used a relative support)
// Applying the algorithm
AlgoHMine algorithm = new AlgoHMine();
algorithm.runAlgorithm(input, output, minsup);
algorithm.printStatistics();
}