crandas.compat¶
This module provides access to deprecated functionality for backward compatibility purposes.
train_test_split (pre-v1.17.0 version)¶
- crandas.compat.model_selection.train_test_split(*arrays, test_size=None, train_size=None, random_state=None, shuffle=True)¶
Split arrays or matrices into random train and test subsets.
This is an old version of this function that is kept for compatibility with existing script recordings. Please use
crandas.crlearn.model_selection.train_test_split()instead.Note that this version does not work in script recordings if train_size and/or test_size are given as floats; and/or if no random_state is provided. Moreover, this old version does not function correctly if train_size and test_size do not add up to the full dataset.
Deprecated since version 1.17.0.