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