text_plain_output_2.png text_plain_output_1.png
from sklearn.model_selection import train_test_split
test_size_pct = 0.01
X_train, X_valid, y_train, y_valid = train_test_split(trn_data[features], trn_data[target_feature], test_size=test_size_pct, random_state=42)