feat(naivebayes): implement NaiveBayes algorithm
feat(example): a document classifier using NaiveBayes over reuters data
This commit is contained in:
14
sibe.cabal
14
sibe.cabal
@ -15,11 +15,13 @@ cabal-version: >=1.10
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Sibe
|
||||
exposed-modules: Sibe, Sibe.NaiveBayes
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, hmatrix
|
||||
, random
|
||||
, deepseq
|
||||
, containers
|
||||
, split
|
||||
default-language: Haskell2010
|
||||
|
||||
executable sibe-exe
|
||||
@ -40,6 +42,16 @@ executable example-xor
|
||||
, hmatrix
|
||||
default-language: Haskell2010
|
||||
|
||||
executable example-naivebayes-doc-classifier
|
||||
hs-source-dirs: examples
|
||||
main-is: naivebayes-doc-classifier.hs
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
||||
build-depends: base
|
||||
, sibe
|
||||
, hmatrix
|
||||
, containers
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite sibe-test
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: test
|
||||
|
Reference in New Issue
Block a user