Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TensorFlow: Powerful Predictive Analytics with TensorFlow

You're reading from  TensorFlow: Powerful Predictive Analytics with TensorFlow

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781789136913
Pages 164 pages
Edition 1st Edition
Languages
Author (1):
Md. Rezaul Karim Md. Rezaul Karim
Profile icon Md. Rezaul Karim

Table of Contents (8) Chapters

TensorFlow: Powerful Predictive Analytics with TensorFlow
Credits
Preface
1. From Data to Decisions – Getting Started with TensorFlow 2. Putting Data in Place – Supervised Learning for Predictive Analytics 3. Clustering Your Data – Unsupervised Learning for Predictive Analytics 4. Using Reinforcement Learning for Predictive Analytics Assessment Answers

Using kNN for Predictive Analytics


kNN is non-parametric and instance-based and is used in supervised learning. It is a robust and versatile classifier, frequently used as a benchmark for complex classifiers such as Neural Networks (NNs) and Support Vector Machines (SVMs). kNN is commonly used in economic forecasting, data compression, and genetics based on their expression profiling.

Working Principles of kNN

The idea of kNN is that from a set of features x we try to predict the labels y. Thus, kNN falls in a supervised learning family of algorithms. Informally, this means that we are given a labeled dataset consisting of training observations (x, y). Now, the task is to model the relationship between x and y so that the function f: X→Y learns from the unseen observation x. The function f(x) can confidently predict the corresponding label y prediction on a point z by looking at a set of nearest neighbors.

However, the actual method of prediction depends on whether or not we are doing regression...

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}