score_predictors | R Documentation |
y
variable
using every column in the dataset as x
, including itself.Calculate predictive power scores for y
Calculates the predictive power scores for the specified y
variable
using every column in the dataset as x
, including itself.
score_predictors(df, y, ..., do_parallel = FALSE, n_cores = -1)
df |
data.frame containing columns for x and y |
y |
string, column name of target variable |
... |
any arguments passed to |
do_parallel |
bool, whether to perform |
n_cores |
numeric, number of cores to use, defaults to maximum minus 1 |
a data.frame containing
the name of the predictor variable
the name of the target variable
text showing how to interpret the resulting score
the predictive power score
the evaluation metric used to compute the PPS
the score of a naive model on the evaluation metric
the score of the predictive model on the evaluation metric
how many cross-validation folds were used
the seed that was set
text shwoing what algorithm was used
text showing whether classification or regression was used
score_predictors(df = iris, y = 'Species')
score_predictors(df = mtcars, y = 'mpg', do_parallel = TRUE, n_cores = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.