HasGP-0.1: A Haskell library for inference using Gaussian processes

HasGP.Parsers.SvmLight

Description

Parser implemented using the Parsec library for reading from files in the format used by SVMLight.

Currently assumes your file is a text file in Unix format. The extra characters in Windows text files confuse it.

Copyright (C) 2011 Sean Holden. sbh11@cl.cam.ac.uk.

Synopsis

Documentation

analyse :: String -> IO ()Source

Parse a file in SvmLight format and print some information about it.

getMatrixExamplesFromFileC :: String -> IO (Matrix Double, Vector Double)Source

Read examples from a file in SvmLight format and produce a corresponding matrix and vector, for a classification problem. Includes checks that all examples have the same number of attributes, and that the file does in fact correspond to a classification problem.