0
$\begingroup$

Like for example, I have my X_train, y_train and X_test. But y_test is left for prediction. We can perform prediction by applying classifier algorithm easily, however can we ever evaluate our model, now that we don't have any actual test data? Or if possible, how can we achieve the same?

$\endgroup$

1 Answer 1

0
$\begingroup$

Test data should include the same variables as train data. Ideally, it should be a random selection from the whole data set.

So, what you can do is divide what you are currently calling train data into two sets and use one of those sets as test data.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.