In our previous efforts, we built models that had coefficients or, said another way, parameter estimates for each of our included features. With KNN, we have no parameters as the learning method is the so-called instance-based learning. In short, The labeled examples (inputs and corresponding output labels) are stored and no action is taken until a new input pattern demands an output value. (Battiti and Brunato, 2014, p. 11). This method is commonly called lazy learning as no specific model parameters are produced. The train
instances themselves represent the knowledge. For the prediction of any new instance (a new data point), the train
data is searched for an instance that most resembles the new instance in question. KNN does this for a classification problem by looking at the closest points—the nearest neighbors to determine the proper class. The k comes into play by determining how many neighbors should be examined by the algorithm, so if k=5, it will examine the...
Mastering Machine Learning with R
By :
Mastering Machine Learning with R
By:
Overview of this book
Table of Contents (20 chapters)
Mastering Machine Learning with R
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
A Process for Success
Linear Regression – The Blocking and Tackling of Machine Learning
Logistic Regression and Discriminant Analysis
Advanced Feature Selection in Linear Models
More Classification Techniques – K-Nearest Neighbors and Support Vector Machines
Classification and Regression Trees
Neural Networks
Cluster Analysis
Principal Components Analysis
Market Basket Analysis and Recommendation Engines
Time Series and Causality
Text Mining
R Fundamentals
Index
Customer Reviews