Safe HaskellSafe-Infered

KNN.KNNInterface

Synopsis

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)