In this recipe, we will learn how to draw a surface plot. This is typically used to visualize the loss (error) surface in machine-learning problems. It helps to see whether the algorithm is stuck in any local minima, when the error surface has multiple minima. We will use the same data that we used in the preceding contour plot.
Surface plot
Getting ready
Import the required libraries:
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
How to do it...
The following are the steps to draw a surface plot:
- Define the...