In this example, the first position is for age, the next is a 0 or 1 value for whether this person rock climbs or not, then the rest of the columns are 0 or 1 values for sate=CA, state=NC, and state=WA
age climbs state
28 yes CA
26 no NC
23 yes WA
[28, 1, 1, 0, 0]
[26, 0, 0, 1, 0]
[23, 1, 0, 0, 1]
github.com/ClimbsRocks/machineJS