-
Notifications
You must be signed in to change notification settings - Fork 3
Balancing the recorded data
NotGayBut5CentsAre5Cents edited this page Jun 5, 2018
·
3 revisions
Data balancing is important because when we train the model we will need to have an equal amount of keypresses for wasd (as naturally we will press w the most) in our train data for the model to train properly.
Given a list and a key, finds all the indexes of the key in the list
params:
counters # a list with counters for amount of key presses
train_data # the npy representation of train data
finds the shortest amount of presses
params:
file_path # the path at which the file will be saved
train_data # the data that will be balanced