© Juan De Dios Santos Rivera 2020
J. D. D. S. RiveraPractical TensorFlow.jshttps://doi.org/10.1007/978-1-4842-6273-3_3

3. Doing k-means with ml5.js

Juan De Dios Santos Rivera1 
(1)
San Juan, PR, USA
 

In the last chapter, we explored the basic blocks of TensorFlow.js to design, implement, and build a logistic regression and a linear regression model. These two models are examples of supervised learning, algorithms that use datasets made of features and labels to learn a function that maps these features to the labels.

For our next exercise, we will leave behind the topic of supervised learning and introduce its counterpart, unsupervised learning, and its quintessential algorithm, k-means.

Here, you will write a web app that trains a k-means model with ...

Get Practical TensorFlow.js: Deep Learning in Web App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.