Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TensorFlow 2.0 Quick Start Guide

You're reading from  TensorFlow 2.0 Quick Start Guide

Product type Book
Published in Mar 2019
Publisher Packt
ISBN-13 9781789530759
Pages 196 pages
Edition 1st Edition
Languages
Author (1):
Tony Holdroyd Tony Holdroyd
Profile icon Tony Holdroyd

Table of Contents (15) Chapters

Preface Section 1: Introduction to TensorFlow 2.00 Alpha
Introducing TensorFlow 2 Keras, a High-Level API for TensorFlow 2 ANN Technologies Using TensorFlow 2 Section 2: Supervised and Unsupervised Learning in TensorFlow 2.00 Alpha
Supervised Machine Learning Using TensorFlow 2 Unsupervised Learning Using TensorFlow 2 Section 3: Neural Network Applications of TensorFlow 2.00 Alpha
Recognizing Images with TensorFlow 2 Neural Style Transfer Using TensorFlow 2 Recurrent Neural Networks Using TensorFlow 2 TensorFlow Estimators and TensorFlow Hub Converting from tf1.12 to tf2
Other Books You May Enjoy

k-Nearest Neighbors (KNN)

The idea behind KNN is relatively straightforward. Given the value of a new particular data point, look at the KNN to the point, and assign a label to the point, depending on the labels of those k neighbors, where k is a parameter of the algorithm.

There is no model as such constructed in this scenario; the algorithm merely looks at all the distances between our new point and all the other data points in the dataset, and in what follows, we are going to make use of a famous dataset that consists of three types of iris flowers: iris setosa, iris virginica, and iris versicolor. For each of these labels, the features are petal length, petal width, sepal length, and sepal width. For diagrams showing this dataset, see https://en.wikipedia.org/wiki/Iris_flower_data_set#/media/File:Iris_dataset_scatterplot.svg.

There are 150 data points (each consisting of the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}