Description Usage Arguments Value See Also
ez_benchmark
tunes a model with eztune and returns a one row
data.frame
with the results. rsample is used to split
the dataset into training and test datasets. The results returned
1 2 3 4 5 6 7 8 9 10 | ez_benchmark(
x,
y,
name = "Data",
method = "svm",
optimizer = "hjn",
fast = TRUE,
cross = NULL,
loss = "default"
)
|
x |
Matrix or data frame containing the dependent variables. |
y |
Vector of responses. Can either be a factor or a numeric vector. |
name |
Name of the dataset. Used to name the output file and as an identifier within the output dataset. |
method |
Model to be fit. Choices are "ada" for adaboost, "en" for
elastic net, "gbm" for gradient boosting machines, and "svm" for support
vector machines. This argument is passed to |
optimizer |
Optimization method to be used. May be either "hjn" or
"ga". This argument is passed to |
fast |
Value for |
cross |
Value for |
loss |
Value for |
Saves a matrix to the indicated path that contains the results for each of the runs. The final file contains the following variables:
data |
Name of the dataset. |
package |
This will always be "EZtune". |
method |
Type of model that was fit. It will "gbm" for gradient boosting machines, "svm" for support vector machines, "en" for elastic net, or "ada" for adaboost. |
optimizer |
Optimization method. It will be "Genetic algorithm" or "Hooke-Jeeves". |
assess |
The method used to assess the model during tuning. It will be either cross-validation or some version of FAST. |
tuned_on |
Metric that was used as the loss function. |
acc_rmse |
The best accuracy or RMSE obtained from the model as determined by a validation dataset. |
auc_mae |
The best AUC or MAE obtained from the model as determined by a validation dataset. |
time |
Time to complete the calculations in seconds. |
The models are verified using rsample to split the data into training and testing datasets.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.