calculate_subsets_performance: Internal function for calculating data for funnel plot

Description Usage Arguments Value

View source: R/subsets_performance.R

Description

This is modified version of DALEXtra::funnel_measure

Usage

1
2
3
4
5
6
7
8
calculate_subsets_performance(
  explainer,
  score_functions = list(),
  nbins = 5,
  cutoff = 0.01,
  cutoff_name = "Other",
  factor_conversion_threshold = 7
)

Arguments

explainer

Explainer created using DALEX::explain

score_functions

Named list of functions named score_* from auditor package

nbins

Number of qunatiles (partition points) for numeric columns. In case when more than one qunatile have the same value, there will be less partition points.

cutoff

Threshold for categorical data. Entries less frequent than specified value will be merged into one category.

cutoff_name

Name for new category that arised after merging entries less frequent than cutoff

factor_conversion_threshold

Numeric columns with lower number of unique values than value of this parameter will be treated as factors

Value

Data frame with columns

and one column for each score function with returned score


arenar documentation built on Oct. 23, 2020, 8:03 p.m.