sibe-0.2.0.1: Machine Learning algorithms
Numeric.Sibe.NaiveBayes
data Document Source #
Constructors
Fields
Instances
Methods
(==) :: Document -> Document -> Bool #
(/=) :: Document -> Document -> Bool #
readsPrec :: Int -> ReadS Document #
readList :: ReadS [Document] #
readPrec :: ReadPrec Document #
readListPrec :: ReadPrec [Document] #
showsPrec :: Int -> Document -> ShowS #
show :: Document -> String #
showList :: [Document] -> ShowS #
data NB Source #
(==) :: NB -> NB -> Bool #
(/=) :: NB -> NB -> Bool #
readsPrec :: Int -> ReadS NB #
readList :: ReadS [NB] #
readPrec :: ReadPrec NB #
readListPrec :: ReadPrec [NB] #
showsPrec :: Int -> NB -> ShowS #
show :: NB -> String #
showList :: [NB] -> ShowS #
initialize :: [Document] -> [Class] -> NB Source #
run :: String -> NB -> (Class, Double) Source #
session :: [Document] -> NB -> [(Class, (Class, Double))] Source #
accuracy :: [(Int, (Int, Double))] -> Double Source #
precision :: [(Int, (Int, Double))] -> Double Source #
recall :: [(Int, (Int, Double))] -> Double Source #
fmeasure :: [(Int, (Int, Double))] -> Double Source #
mean :: [Double] -> Double Source #
stdev :: [Double] -> Double Source #
cleanText :: String -> String Source #
cleanDocuments :: [Document] -> [Document] Source #
ngram :: Int -> [Document] -> [Document] Source #
ngramText :: Int -> String -> String Source #
removeWords :: [String] -> [Document] -> [Document] Source #
removeStopwords :: Int -> [Document] -> [Document] Source #