Skip to content

Instantly share code, notes, and snippets.

@sazio
Created August 17, 2020 22:25
Show Gist options
  • Save sazio/206de6f4daf9aef5332ed089bd93db5d to your computer and use it in GitHub Desktop.
Save sazio/206de6f4daf9aef5332ed089bd93db5d to your computer and use it in GitHub Desktop.
# test regression dataset
from sklearn.datasets import make_regression
# define dataset
X_reg, y_reg = make_regression(n_samples=1000, n_features=8, n_informative=3, random_state=1)
# summarize the dataset
print(X_reg.shape, y_reg.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment