This is a KNN (k-nearest neighbors machine learning algorithm) TensorFlow.js SharePoint Framework (SPFx) extension. You can test your data using training and testing sets, make real predictions and plot. I demonstrate both Classification and Regression models and discuss Min-Max Normalization vs Z-Score Standardization.
To get started.
Clone the repository
git clone https://github.com/Ashot72/knn-tensorflowjs-spfx-extension.git
cd knn-tensorflowjs-spfx-extension
# installs dependencies
npm install
# creates release package which should be deployed in SharePoint app catalog
npm run deploy-prod
Go to KNN TensorFlow.js SPFx extension Video page
Go to How to run KNN TensorFlow.js SPFx extension page
Go to How to run KNN TensorFlow.js SPFx extension description page