Protected
mayBoolean to know if we may normalize data. If false, then data must not be normalized, otherwise some operations of the model will fail.
Readonly
numThe number of class for labels and model output, 1 or 2 for binary classification.
Protected
Readonly
shouldProtected
xThe second shape of all 3d tensors (or first in case we ignore the batch size), defined in subclasses.
Protected
yThe third shape of 3d tensor (or second in case we ignore the batch size), defined in subclasses.
Protected
addProtected
Gets the current array of labels from a dataset and append a new label according to the number of classes numClasses. If there is one class, [0] means human and [1] bot while with two classes, [1,0] means human and [0,1] bot.
The current dataset label array, we add an element to it.
The index of the class, 0 for human and 1 for bot.
Protected
getReturn a new chunk element with arbitrary chosen mouse features from the record.
The line of the record with calculated mouse features.
This method gets a recorder object and loads it as a Dataset object with the right format. The return value might contain empty arrays if the recorder as too few elements. The userIndex is an integer that says what is the class index for the label, in our case of binary classifier human-bot, 0 means human and 1 means bot.
The recorder containing loaded records and features.
The index of the class from record, if unspecified or negative, the label array of the return object is empty.
Generated using TypeDoc
This class extends DataFeatures and takes 2 features :
See
DataFeatures