mlr3 (version 0.1.0-9000)

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.

Usage

mlr_tasks$get("german_credit")

Examples

Run this code
# NOT RUN {
task = mlr_tasks$get("german_credit")
costs = matrix(c(0, 1, 5, 0), nrow = 2)
dimnames(costs) = list(predicted = task$class_names, truth = task$class_names)
measure = MeasureClassifCosts$new("german_credit_costs", costs)
print(measure)
# }

Run the code above in your browser using DataLab