1×
Become a member
to unlock all features
Autoplay

    Predict Outcomes with Regression Functions in JavaScript

    javascriptJavaScript

    Regression involves analyzing multiple sources of data and predicting a response based off the results of the data. It takes using the k-nearest neighbors algorithm to the next level by choosing a N number of closest neighbors and taking the average between them. Let’s write a function that tries to predict how many pies our restaurant should make today!