本文整理汇总了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();
});
}
开发者ID:matfax,项目名称:spmf,代码行数:19,代码来源:MainTestVME.java
示例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();
}
开发者ID:matfax,项目名称:spmf,代码行数:10,代码来源:DescriptionAlgoVME.java
示例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();
}
开发者ID:YinYanfei,项目名称:CadalWorkspace,代码行数:14,代码来源:MainTestVME.java
注:本文中的ca.pfv.spmf.algorithms.frequentpatterns.vme.AlgoVME类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论