Skip to content

Instantly share code, notes, and snippets.

@realfirst
Created April 25, 2019 00:08
Show Gist options
  • Save realfirst/a81779d42faa05371c8ff32f48c5a8db to your computer and use it in GitHub Desktop.
Save realfirst/a81779d42faa05371c8ff32f48c5a8db to your computer and use it in GitHub Desktop.
# doing randomization prior to splitting the data
california_housing_dataframe = california_housing_dataframe.reindex(
np.random.permutation(california_housing_dataframe.index))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment