JavaScript – Machine Learning – Linear Regression – Visual Results

Git Hub Code

To follow up on my last two blog posts, I was able to use some Google JavaScript Charts to give a visual on the results.  I was concerned at first that the housing example data set from Professor Andrew Ng’s Machine Learning class (reference #4) had some questionable results using my JavaScript implementation of Jason Brownlee’s single variable Linear Regression example (reference #2).  However, after reviewing the results, it seems to work.  Judge for yourself.  For reference, the previous posts are:

Results

  • Using Jason Brownlee’s numbers

Screen Shot 2017-11-01 at 10.13.16 PM

  • Using a simple example from Professor Ng’s class

Screen Shot 2017-11-01 at 10.12.59 PM

  • Using the housing example from Professor Ng’s class

Screen Shot 2017-11-01 at 10.13.29 PM

Stay tuned!

References

  1. https://stackoverflow.com/questions/6859298/how-to-draw-google-line-charts-when-some-of-the-values-are-missing
  2. https://www.coursera.org/learn/machine-learning
  3. https://machinelearningmastery.com/simple-linear-regression-tutorial-for-machine-learning/
  4. https://github.com/girishkuniyal/Predict-housing-prices-in-Portland
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s