Loading CSV files with node.js in a form suitable for use in statistical/machine learning algorithms.
Uses the following npm modules:
$ npm install
The example.js demonstrates loading a simple CSV file (
- conversion of the
passedcolumn to boolean
- shuffle and split to data and test set
$ node example.js features: [ [ 12, 22 ], [ 11, 21 ] ] labels: [ [ true ], [ false ] ] testFeatures [ [ 10, 20 ] ] testLabels: [ [ true ] ]