Created
January 31, 2019 17:58
-
-
Save afozbek/436069d72b0e0a9726cce252bd3bcc48 to your computer and use it in GitHub Desktop.
medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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