evaluate_test_metrics | R Documentation |
This function takes a grid search object, test data, and test labels to evaluate the performance of the best model found during grid search.
evaluate_test_metrics(grid_search, X_test, y_test, modules)
grid_search |
A grid search object containing the best estimator. |
X_test |
A data frame or matrix of test features. |
y_test |
A vector of test labels. |
modules |
A list of Python modules used in the function. |
A list containing key performance metrics of the best model: - @field precision: The weighted precision score. - @field recall: The weighted recall score. - @field f1: The weighted F1 score. - @field accuracy: The overall accuracy score. These metrics are crucial for evaluating the effectiveness of the model on test data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.