"python: method .as_matrix will be removed in a future version. use .values instead " Code Answer

1

it should be:

train_x, test_x, train_y, test_y = train_test_split(x.values, y.values, test_size=0.25)

see this.

By a_horse_with_no_name on April 25 2022

Answers related to “python: method .as_matrix will be removed in a future version. use .values instead ”

Only authorized users can answer the Search term. Please sign in first, or register a free account.