Description Usage Format Methods
In order to be able to use the binary / logistic loss functions, we convert every value to a value between 0 and 1. This preprocessor class takes care of this conversion by using a set of bounds (the min and max or expected min and max of the data).
1 |
An object of class R6ClassGenerator
of length 24.
initialize(bounds)
Initializes a new PreProcessor
class.
@param bounds list the bounds that should be used when normalizing the
data. This list should contain an entry for each relevant variable that
should be scaled. Each of those entries should then contain a min
and max
entry.
normalize(data)
Runs the actual normalization procedure. The data passed in is normalized according to the bounds specified on initialization.
@param data data.table the non-normalized data.
@return data.table containing the normalized data.
denormalize(data)
Runs the actual normalization procedure. The data passed in is normalized according to the bounds specified on initialization.
@param data data.table the non-normalized data.
@return data.table containing the normalized data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.