Description Usage Arguments Details Value
View source: R/feature_finder.R
Add features one-by-one to find good small sets of features
1 2 | feature_finder(train, test, response, model, difference, n_features,
verbose = F)
|
train |
The training dataset |
test |
The testing dataset |
response |
The response column as a string |
model |
A list containing at least a training function The You can use |
difference |
A function that calculates the difference between labels and predictions, for example
|
n_features |
The number of features to try before stopping the algorithm. Can be passed as a integer between 1 and |
verbose |
Flag indicating if intermediate updates should be printed |
This function will select features one-by-one depending on the correlation of a feature with the residuals of the train predictions to slowly build up a bigger model.
A dataframe, containing the mean difference for train and test set, as well as the feature that was added at each step.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.