Description Usage Arguments Value
Perform k-fold CV and hyperparameter optimization with caret to predict party affiliation based on election machine questions.
1 |
data |
The data set to be used: should only include party column and predictors! |
k |
Selected k for cross-validation. |
model |
The caret model to be used in prediction. |
party_col |
Column name that includes party affiliation. |
repeats |
Number of repeats for CV (increases stability). |
Data frame that includes optimized parameters, accuracy and kappa information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.