mlr_tasks_german_credit: German Credit Classification Task

Description Format Construction Source See Also Examples

Description

A classification task for the German credit data set. The aim is to predict creditworthiness, labeled as "good" and "bad". Positive class is set to label "good".

See example for the creation of a MeasureClassifCosts as described misclassification costs.

Format

R6::R6Class inheriting from TaskClassif.

Construction

1
2
mlr_tasks$get("german_credit")
tsk("german_credit")

Source

Data set originally published on UCI. This is the preprocessed version taken from package evtree.

Donor: Professor Dr. Hans Hofmann
Institut für Statistik und Ökonometrie
Universität Hamburg
FB Wirtschaftswissenschaften
Von-Melle-Park 5
2000 Hamburg 13

See Also

Dictionary of Tasks: mlr_tasks

Examples

1
2
3
4
5
task = tsk("german_credit")
costs = matrix(c(0, 1, 5, 0), nrow = 2)
dimnames(costs) = list(predicted = task$class_names, truth = task$class_names)
measure = msr("classif.costs", id = "german_credit_costs", costs = costs)
print(measure)

mllg/mlr3 documentation built on Sept. 27, 2019, 9:38 a.m.