'train_data,test_data=train_test_split in Sklearn
I wanted to know the meaning of
train_data,test_data=train_test_split(data,
test_size=TEST_SIZE,
stratify=data[TARGET_NAME],
random_state=RANDOM_STATE)
until now I have only seen train_test_split into xtrain,x_test,y_train,y_test. I am not able to understand how y_train,x_train match with the code above?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|