svm-light-utils-0.1.4: Parsers and formatters for the SVMlight input file format

Safe HaskellSafe
LanguageHaskell2010

Math.SVM.SVMLight.Utils

Contents

Description

This package provides a variety of utilities for parsing and producing SVMlight input files.

Synopsis

Types

newtype Qid Source #

Constructors

Qid Int 

Instances

Eq Qid Source # 

Methods

(==) :: Qid -> Qid -> Bool #

(/=) :: Qid -> Qid -> Bool #

Ord Qid Source # 

Methods

compare :: Qid -> Qid -> Ordering #

(<) :: Qid -> Qid -> Bool #

(<=) :: Qid -> Qid -> Bool #

(>) :: Qid -> Qid -> Bool #

(>=) :: Qid -> Qid -> Bool #

max :: Qid -> Qid -> Qid #

min :: Qid -> Qid -> Qid #

Show Qid Source # 

Methods

showsPrec :: Int -> Qid -> ShowS #

show :: Qid -> String #

showList :: [Qid] -> ShowS #

data Point Source #

A sample point (e.g. a line of an SVMlight input file).

Constructors

Point 

Instances

Eq Point Source # 

Methods

(==) :: Point -> Point -> Bool #

(/=) :: Point -> Point -> Bool #

Ord Point Source # 

Methods

compare :: Point -> Point -> Ordering #

(<) :: Point -> Point -> Bool #

(<=) :: Point -> Point -> Bool #

(>) :: Point -> Point -> Bool #

(>=) :: Point -> Point -> Bool #

max :: Point -> Point -> Point #

min :: Point -> Point -> Point #

Show Point Source # 

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

Parsing SVMlight files

point :: Parser Point Source #

Parse a sample point

Generating SVMlight files

renderPoints :: [Point] -> Builder Source #

A Builder containing the given Points

renderPoint :: Point -> Builder Source #

A Builder containing the given Point