Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-on Machine Learning with JavaScript

You're reading from   Hands-on Machine Learning with JavaScript Solve complex computational web problems using machine learning

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788998246
Length 356 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Burak Kanber Burak Kanber
Author Profile Icon Burak Kanber
Burak Kanber
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Exploring the Potential of JavaScript FREE CHAPTER 2. Data Exploration 3. Tour of Machine Learning Algorithms 4. Grouping with Clustering Algorithms 5. Classification Algorithms 6. Association Rule Algorithms 7. Forecasting with Regression Algorithms 8. Artificial Neural Network Algorithms 9. Deep Neural Networks 10. Natural Language Processing in Practice 11. Using Machine Learning in Real-Time Applications 12. Choosing the Best Algorithm for Your Application 13. Other Books You May Enjoy

Example 3 – polynomial regression

The polynomial regression can be considered a more generalized form of the linear regression. A polynomial relationship has the form:

y = a0 + a1x1 + a2x2 + a3x3 + ... + anxn

A polynomial can have any number of terms, which is called the degree of the polynomial. For each degree of the polynomial, the independent variable, x, is multiplied by some parameter, an,, and the X-value is raised to the power n. A straight line is considered a polynomial of degree 1; if you update the preceding polynomial formula to remove all degrees above one, you are left with:

y = a0 + a1x

Where a0 is the y-intercept and a1 is the slope of the line. Despite the slight difference in notation, this is equivalent to y = mx + b.

Quadratic equations, which you may recall from high school math, are simply polynomials of degree 2, or y = a0 + a1x + a2x2. Cubic equations...

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 $19.99/month. Cancel anytime