Safe Haskell | Safe-Infered |
---|
KNN.KNNInterface
- crossValidate :: Double -> NeighbourNum -> DType -> Resolve -> FPath -> IO Performance
- traintest :: NeighbourNum -> DType -> Resolve -> TrainPath -> TestPath -> String -> IO ()
- makeObjectFromFile :: Int -> DType -> Resolve -> FPath -> IO KNN
Documentation
crossValidate :: Double -> NeighbourNum -> DType -> Resolve -> FPath -> IO Performance
crossValidates the given file and returns the performace of the classfier
traintest :: NeighbourNum -> DType -> Resolve -> TrainPath -> TestPath -> String -> IO ()
trains the classifier on the train file and tests it on the test file writes in the file
makeObjectFromFile :: Int -> DType -> Resolve -> FPath -> IO KNN
Takes the data from a file and fits it with the given priortype and distribution to give IO (naive bayes object)