implemented phase 2
This commit is contained in:
@@ -13,6 +13,6 @@ main = do
|
||||
let threshold = read $ last args
|
||||
file <- readFile filename
|
||||
case parseCSV file of
|
||||
Left _ -> error "Could not parse out.csv"
|
||||
Right val -> mapM_ (\x -> putStrLn (show x ++ "(" ++ show (count table x) ++ ")")) (concat (frequentPatterns threshold table)) where
|
||||
table = map (ItemSet. Set.fromList .map Item) val
|
||||
Left _ -> error "Could not parse out.csv"
|
||||
Right val -> mapM_ (\x -> putStrLn (show x ++ "(" ++ show (count table x) ++ ")")) (concat (frequentPatterns threshold table)) where
|
||||
table = map (ItemSet. Set.fromList .map Item) val
|
||||
|
||||
Reference in New Issue
Block a user