Skip to content

Instantly share code, notes, and snippets.

@groverpr
Created September 11, 2018 22:28
Show Gist options
  • Save groverpr/a8bd78d12444d85f3975d838a61dbfb9 to your computer and use it in GitHub Desktop.
Save groverpr/a8bd78d12444d85f3975d838a61dbfb9 to your computer and use it in GitHub Desktop.
simulating friedman data for comparison studies
# simulating 10,000 data points with 2 useless and 5 uniformly distributed features
X, y = make_friedman1(n_samples=10000, n_features=7, noise=0.0, random_state=11)
# train-validation split
X_train, X_valid, y_train, y_valid = train_test_split(X, y, test_size=0.20, random_state=42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment