Additional Regression Models in R and Python

Support Vector Regression (SVR)

In Python:

This slideshow requires JavaScript.

In R:

SVR Model - R
Code for SVR in R is much more succinct than for this model in Python.

Decision Tree Regression

In Python:

Decision Tree Regression - Python
Decision Tree Regression initially visualized as sloped segments, but increasing the resolution showed the desired stepped function visualization.

In R:

Decision Tree Regression - R
As in the Python tutorial for SVR, Decision Tree Regression initially visualized as a single horizontal average, but adding a command to forcibly increase the number of steps gave a more accurate tree. Similarly to the initial sloped segments issue for this model in Python, increasing ggplot resolution showed the desired stepped function visualization.

Random Forest Regression:

In Python:

This slideshow requires JavaScript.

In R:

This slideshow requires JavaScript.

Advertisement

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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: