felix

How to implement the K-means algorithm in Tensorflow

The K-means algorithm is a simple clustering algorithm. It is an unsupervised learning algorithm, therefore it automatically finds structure in unordered data. Since TensorFlow does not have a native implementation, it’s useful to know the tips and tricks to implement K-means. I’m hoping to use K-means in an upcoming post, so I want to explain […]

How to implement the K-means algorithm in Tensorflow Read More »

Creating a custom training loop in tensorflow

Sticking to the sequential model limits the freedom you have with regards to creating models in Tensorflow. In this post, I’ll start by showing a simple sequential model. I’ll then convert it into a functional model. Finally, I’ll use GradientTape to calculate all gradients and control the full train loop, all to improve the possibilities

Creating a custom training loop in tensorflow Read More »