Visualizing Machine Learning Predictions

Break down the components of visualizing machine learning predictions.

As part of business intelligence efforts, machine learning (ML) models are often used for forecasting and better identifying the factors behind certain relationships.

Let's take a look at a brief example of how to visualize machine learning predictions using the Tips dataset from the Plotly package. Here, we're training a simple linear regression model on the Tips dataset to predict the tips of a restaurant from the total bill that groups paid. We print the R-squared score, also known as the coefficient of determination, to identify the performance of the model on the dataset.

Get hands-on with 1200+ tech skills courses.