Custom data prediction using decision trees
You can use the custom data for prediction as long as it has the same number, order and type of features as your training data into an array type, not in list. If you meet these conditions, you can send that array to the model for prediction with the normal predict() method.
I am using train_test_split to train the model and check the results using predict. How do I proceed to predict the labels of additional data, for example, from a test set or from user inputs?