score_df: Calculate predictive power scores for whole dataframe...

Description Usage Arguments Value Examples

View source: R/score.R

Description

Calculate predictive power scores for whole dataframe Iterates through the columns of the dataframe, calculating the predictive power score for every possible combination of x and y.

Usage

1
score_df(df, ..., do_parallel = FALSE, n_cores = -1)

Arguments

df

data.frame containing columns for x and y

...

any arguments passed to score

do_parallel

bool, whether to perform score calls in parallel

n_cores

numeric, number of cores to use, defaults to maximum minus 1

Value

a data.frame containing

x

the name of the predictor variable

y

the name of the target variable

result_type

text showing how to interpret the resulting score

pps

the predictive power score

metric

the evaluation metric used to compute the PPS

baseline_score

the score of a naive model on the evaluation metric

model_score

the score of the predictive model on the evaluation metric

cv_folds

how many cross-validation folds were used

seed

the seed that was set

algorithm

text shwoing what algorithm was used

model_type

text showing whether classification or regression was used

Examples

1
2
score_df(iris)
score_df(mtcars, do_parallel = TRUE, n_cores = 2)

ppsr documentation built on March 2, 2021, 5:06 p.m.