score: Calculates predictive power score

Description Usage Arguments Details Value

View source: R/functions.R

Description

Calculates predictive power score for x predicts y. This is a light (wip) implementation which for now only supports binary classification and x as numeric a feature.

Usage

1
2
3
4
5
6
7
8
9
score(
  df,
  x,
  y,
  metric = "roc_auc",
  sample_size = NULL,
  cv_folds = 5L,
  repeated_cv = 1L
)

Arguments

df

data.frame input data which contains x and y

x

str name of feature

y

str name of target

metric

str Machine learning metric to evaluate on. Choose between roc_auc, pr_auc, F1.

sample_size

int random sample taken from df to speed up calculations. If NULL all samples are used.

cv_folds

int number of cross validations folds

repeated_cv

int number of repeated cross validations

Details

for mere information: https://github.com/8080labs/ppscore

Value

The predictive power score for x.


Gulde91/Predictive_power_score documentation built on Dec. 31, 2020, 12:06 p.m.