Fork me on GitHub

Project Notes

loadcsv

Loading CSV files with node.js in a form suitable for use in statistical/machine learning algorithms.

:arrow_forward: return to the Catalog

Notes

This is my working of an example from the Machine Learning with Javascript course.

Libraries

Uses the following npm modules:

Installation/Setup

$ npm install

Example

The example.js demonstrates loading a simple CSV file (example.csv) with:

  • conversion of the passed column to boolean
  • shuffle and split to data and test set

Example run:

$ node example.js
features: [ [ 12, 22 ], [ 11, 21 ] ]
labels:  [ [ true ], [ false ] ]
testFeatures [ [ 10, 20 ] ]
testLabels:  [ [ true ] ]

Credits and References

About LCK#42 nodeCSV
Project Source on GitHub Return to the Project Catalog

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.