Constructor of the DataTraining object, it takes parameters :
Readonly dataThe data object to parse raw data with delbot.data.Data.loadDataSet.
Readonly fileThe path to a JSON file containing an object Session. Default to "../../python/sessions.json".
Private shuffledPrivate shuffledPrivate testPrivate testPrivate trainPrivate trainReadonly trainingA number between 0 and 1, the %/100 of the training set compared to the whole dataset, default to 0.8 for 80%.
Private nextGenerated using TypeDoc
Utility class to load raw data from your computer, parse them with a Data object and get final tensors for a model. You first need a JSON file that represents a Session object, with a list of files containing human or bot trajectories. Each file must be something like:
Were, as first line, the resolution to normalize X and Y and the following lines are
timestamp,actionType,x,y.A part of the dataset if used as training data and the other part for testing.
To use this class, just call load, then you can call nextTrainBatch and nextTestBatch.