Documentation ¶
Index ¶
Constants ¶
const ( // LrnHeaderSize holds the size of LRN file header LrnHeaderSize = iota // LrnHeaderCols holds number of LRN header columns LrnHeaderCols // LrnHeaderTypes holds number of LRN types LrnHeaderTypes // LrnHeaderNames not used LrnHeaderNames // LrnHeaderRows holds number of LRN header rows LrnHeaderRows )
LRN data format constants
Variables ¶
This section is empty.
Functions ¶
func LoadCLS ¶
LoadCLS reads classification information from a .cls file. See the specification here: http://databionic-esom.sourceforge.net/user.html#Classification_files____cls_ The only supported header is the Number of datasets (n)
func LoadCSV ¶
LoadCSV loads data set from the path supplied as a parameter. It returns data matrix that contains particular CSV fields in columns. It returns error if the supplied data set contains corrrupted data or if the data can not be converted to float numbers
func LoadLRN ¶
LoadLRN reads data from a .lrn file. See the specification here: http://databionic-esom.sourceforge.net/user.html#Data_files____lrn_
Types ¶
type DataSet ¶
DataSet represents training data set
func New ¶
New returns pointer to dataset or fails with error if either the file in dataPath does not exist or if it is encoded in an unsupported format. File format is inferred from the file extension. Currently only csv and lrn data formats are supported. If the dataset has classification information it can be provided as the second parameter. If the file in clsPath doesn't exist New fails with error.