I work on a dataset concerning games playing results. i.e every child play an indefinite number of games and it has as output (y) two possible values "success" or "Failure". It's about 800 000 samples, with the total number of positive output (1) is ~~ 640 000 and the total number of negative output (0) is ~~ 160 000.

id     player     game    y
1      P1         G1      1
2      P1         G2      0
3      P1         G2      1
4      P1         G3      0
5      P2         G1      0
6      P2         G1      1
7      P2         G2      0  

For making a prediction I sort my data by "players" first then by "games".

I want to make some tests for improving the prediction accuracy. As I am a beginner in machine learning and data Science I don't know what is better to choose:

  • working with this database as it is, even it unbalanced? ??
  • or selecting just games that have (approximatively) balanced output? i.e to except any game result which has a total number of positive too begger than a total number of negative ??

1 Answer 1


You could work with your database as it is, because 20% positives is not really that unbalanced. Most of the algorithms work perfectly on this kind of dataset.

But if you want to work it differently, I suggest you use Synthetic Minority Over Sampling (SMOTE), which is a technique which repeats the minority dataset until is balanced.


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.