Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Validate assignment onto base classes #1368

@sebffischer

Description

@sebffischer

Currently, some fields of Learner, Task, Measure, Resampling are simple fields and no input validation is performed.

E.g. the following works

library(mlr3)
l = lrn("classif.rpart")
l$timeout = "invalid_value"

We should add input validation for:

  • Learner
  • Task
  • Resampling
  • Measure
  • ResampleResult
  • BenchmarkResult

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions