Building a single function variable in Python is pretty simple with matplotlib . But I'm trying to add a third axis to the scatter plot so that I can visualize my multidimensional model.
Here is an example snippet with 30 outputs:
import numpy as np np.random.seed(2)
If it were just one model variable, I would probably use something like this to create a graph and a line of best fit:
%pylab inline import matplotlib.pyplot as pl pl.scatter(x_train, y_train) pl.plot(x_train, ols.predict(x_train)) pl.xlabel('x') pl.ylabel('y')
What is equivalent to multidimensional rendering?
source share