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.

Leave a comment

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