mlr3 (version 0.1.4)

mlr_tasks_german_credit: German Credit Classification Task

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.

Arguments

Format

R6::R6Class inheriting from TaskClassif.

Construction

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

See Also

Dictionary of Tasks: mlr_tasks

as.data.table(mlr_tasks) for a complete table of all (also dynamically created) Tasks.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab