Principal Components in TypeScript (Part 2)

typescript dev.to

This is part two of a series Principal Components in TypeScript TL;DR If you need a TL;DR, just read the code here: https://www.npmjs.com/package/pca-js?activeTab=code Not a Code Blog This is not a code blog. There’s no easy copy-paste solution here. If that’s what you want, go straight to the source code above. Step 1: Normalize the Data Our first step is to normalize data by subtracting the mean. An elegant way to do this: Create a unit square matrix Mu

Read Full Tutorial open_in_new
arrow_back Back to Tutorials