Skip to content

Instantly share code, notes, and snippets.

@afozbek
Created January 31, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afozbek/436069d72b0e0a9726cce252bd3bcc48 to your computer and use it in GitHub Desktop.
Save afozbek/436069d72b0e0a9726cce252bd3bcc48 to your computer and use it in GitHub Desktop.
medium
# Datasetimizi parçalayarak test datası oluşturacağız.
# Datamızın 1/3 ünü test datası olarak oluşturuyoruz
# Yani 30 satırımızın 20 si train datası olarak ayrılacak
# Ve 10 satırımız da test datası olucak.
X_train, X_test, y_train, y_test = train_test_split(x, y, test_size = 1/3, random_state = 123, shuffle=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment