Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.SVM.Raw
Description
This is a module with raw bindings to libsvm
- data CSvmNode = CSvmNode {}
- data CSvmProblem = CSvmProblem {}
- newtype CSvmType = CSvmType {
- unCSvmType :: CInt
- cSvc :: CSvmType
- nuSvc :: CSvmType
- newtype CKernelType = CKernelType {}
- oneClass :: CSvmType
- linear :: CKernelType
- poly :: CKernelType
- epsilonSvr :: CSvmType
- data CSvmParameter = CSvmParameter {}
- nuSvr :: CSvmType
- rbf :: CKernelType
- sigmoid :: CKernelType
- precomputed :: CKernelType
- defaultCParam :: CSvmParameter
- data CSvmModel
- c_svm_train :: Ptr CSvmProblem -> Ptr CSvmParameter -> IO (Ptr CSvmModel)
- c_svm_cross_validation :: Ptr CSvmProblem -> Ptr CSvmParameter -> CInt -> Ptr CDouble -> IO ()
- c_svm_predict :: Ptr CSvmModel -> Ptr CSvmNode -> CDouble
- c_svm_save_model :: CString -> Ptr CSvmModel -> IO CInt
- c_svm_load_model :: CString -> IO (Ptr CSvmModel)
- c_svm_check_parameter :: Ptr CSvmProblem -> Ptr CSvmParameter -> CString
- c_svm_destroy_model :: FinalizerPtr CSvmModel
- c_clone_model_support_vectors :: Ptr CSvmModel -> IO CInt
Documentation
data CSvmProblem Source #
Instances
Constructors
CSvmType | |
Fields
|
linear :: CKernelType Source #
poly :: CKernelType Source #
rbf :: CKernelType Source #
c_svm_train :: Ptr CSvmProblem -> Ptr CSvmParameter -> IO (Ptr CSvmModel) Source #
c_svm_cross_validation :: Ptr CSvmProblem -> Ptr CSvmParameter -> CInt -> Ptr CDouble -> IO () Source #