I know how to do a feature extraction of a data using specific feature like entropy, and energy, using its train and test file to get the accuracy of it. But, i'm still quite confused on the concept of what is the train and test data.

  • Does train data mean it changes the data after it goes to the feature like entropy?
  • Then afterwards the accuracy will be checked using the test data?

1 Answer 1


This is a concept in supervised machine learning.

Train data: Used to train your supervised ML model. This data contains both the input and the desired output, which is compared with the output from your model. Your model is hence trained to reduce the prediction error or cost function.

Test data: The data for which you want to predict the outcome. The desired output is unknown. Based on the training data, your model predicts outcome for the new test data.

You should become more familiar with the concepts of machine learning first, before asking questions here. There is a plethora of resources on machine learning.


Your Answer

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

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