Skip to content

Discretize Table #143

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

Discretization means to replace a continuous variable by a variable that only has a finite amount of values. This is a preprocessing step that we should support.

Desired solution

  • Add a class Discretizer in safeds.data.tabular.transformation that wraps the KBinsDiscretizer of scikit-learn
  • Make the class a subclass of TableTransformer
  • The __init__ should for now only have a parameter number_of_bins to control how many bins are created
  • If number_of_bins is less than 2, raise a ValueError

Metadata

Metadata

Assignees

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions