@Test(expected = Test.None.class) public void testPima() throws IOException { System.out.println("pima"); FPTree tree = FPTree.of(20, () -> ItemSetTestData.read("transaction/pima.D38.N768.C2")); Stream<AssociationRule> rules = ARM.apply(0.9, tree); assertEquals(6803, rules.count()); }
public static Stream<AssociationRule> apply(double confidence, FPTree tree) { TotalSupportTree ttree = new TotalSupportTree(tree); ARM arm = new ARM(confidence, ttree); return StreamSupport.stream(arm.spliterator(), false); }
ARM implements Iterable<AssociationRule> { public static Stream<AssociationRule> apply(double confidence, FPTree tree) { TotalSupportTree ttree = new TotalSupportTree(tree); ARM arm = new ARM(confidence, ttree); return StreamSupport.stream(arm.spliterator(), false); } }
ARM implements Iterable<AssociationRule> { public static Stream<AssociationRule> apply(double confidence, FPTree tree) { TotalSupportTree ttree = new TotalSupportTree(tree); ARM arm = new ARM(confidence, ttree); return StreamSupport.stream(arm.spliterator(), false); } ARM(double confidence, TotalSupportTree ttree); }
ARM implements Iterable<AssociationRule> { public static Stream<AssociationRule> apply(double confidence, FPTree tree) { TotalSupportTree ttree = new TotalSupportTree(tree); ARM arm = new ARM(confidence, ttree); return StreamSupport.stream(arm.spliterator(), false); } ARM(double confidence, TotalSupportTree ttree); @Override Iterator<AssociationRule> iterator(); static Stream<AssociationRule> apply(double confidence, FPTree tree); }
ARM implements Iterable<AssociationRule> { public static Stream<AssociationRule> apply(double confidence, FPTree tree) { TotalSupportTree ttree = new TotalSupportTree(tree); ARM arm = new ARM(confidence, ttree); return StreamSupport.stream(arm.spliterator(), false); } ARM(double confidence, TotalSupportTree ttree); @Override Iterator<AssociationRule> iterator(); static Stream<AssociationRule> apply(double confidence, FPTree tree);  }