1 {-# LANGUAGE OverloadedLists #-}
3 module Clustering.FrequentItemSet.AprioriSpec where
5 import Control.Monad (Monad (..))
6 import Data.List qualified as List
8 import Test.Syd.Validity
10 import Clustering.FrequentItemSet.Apriori
13 describe "frequentItemSets" do
14 it "solves Takeaki Uno example" do
15 -- From https://research.nii.ac.jp/~uno/code/lcm.html#IntroductionstoFrequentItemsetMining
22 , [2, 7, 9] -- Copy-paste typo on the original example
23 , [1, 9] -- Add this to increase the support of [1,9] because the original example is wrong…
42 it "solves a singleton transaction" do
43 naiveClosedFrequentItemSets
48 it "solves a basic example" do
49 naiveClosedFrequentItemSets
56 it "solves a another basic example" do
57 naiveClosedFrequentItemSets
66 naiveClosedFrequentItemSets