skccm
skccm copied to clipboard
unexpected keyword argument 'random_state'
TypeError Traceback (most recent call last)
TypeError: train_test_split() got an unexpected keyword argument 'random_state'
Seriously, after taking forever to load, I was expecting a solution not just a description of the problem.
use seed instead of random_state: train_test = toy_dataset.train_test_split(test_size=0.05, seed = 42)