Skip to content
Snippets Groups Projects
Commit 40b3799a authored by Fabian Pedregosa's avatar Fabian Pedregosa
Browse files

FIX: fix dimensions in plot_neighbors_regression.

parent 1883b7be
Branches
Tags
No related merge requests found
...@@ -16,7 +16,7 @@ import numpy as np ...@@ -16,7 +16,7 @@ import numpy as np
np.random.seed(0) np.random.seed(0)
X = np.sort(5*np.random.rand(40, 1), axis=0) X = np.sort(5*np.random.rand(40, 1), axis=0)
T = np.linspace(0, 5, 500) T = np.linspace(0, 5, 500)[:, np.newaxis]
y = np.sin(X).ravel() y = np.sin(X).ravel()
# Add noise to targets # Add noise to targets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment