MatrixReader
Utilities for reading data from CSV data sources
Operations
LoadMatrices
Load input and output data into matrices
function : LoadMatrices(filename:String, target_offset:Int) ~ Vector[]<FloatMatrixRef>Parameters
| Name | Type | Description |
|---|---|---|
| filename | String | file to process |
| target_offset | Int | index of first column with target data |
Return
| Type | Description |
|---|---|
| Vector | input and output matrix data |
LoadSplitMatrices
Load input and output data into split matrices for training and testing
function : LoadSplitMatrices(filename:String, target_offset:Int, training_perc:Float, line_ending:String) ~ Vector[]<FloatMatrixRef>Parameters
| Name | Type | Description |
|---|---|---|
| filename | String | file to process |
| target_offset | Int | index of first column with output data |
| training_perc | Float | percentage of data used for training |
| line_ending | String | CSV line ending (i.e. Unix, Windows, etc.), default CRLF per the spec |
Return
| Type | Description |
|---|---|
| Vector | split matrices for training and testing, first two matrices are training, latter two test data |