Skip to content

Instantly share code, notes, and snippets.

@dataprofessor
Created August 14, 2020 16:59
Show Gist options
  • Select an option

  • Save dataprofessor/f97664249766d515807db7cd74d64da5 to your computer and use it in GitHub Desktop.

Select an option

Save dataprofessor/f97664249766d515807db7cd74d64da5 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "03_data_splitting.ipynb",
"provenance": [],
"collapsed_sections": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
}
},
"cells": [
{
"cell_type": "code",
"metadata": {
"id": "dMRn8EVjFlrT",
"colab_type": "code",
"colab": {}
},
"source": [
"from sklearn.model_selection import train_test_split"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "aOIAljc1FmXb",
"colab_type": "code",
"colab": {}
},
"source": [
"X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size=0.2)"
],
"execution_count": null,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment