Skip to content

Implementation of a fallback.learner option #181

Description

@benesom

A rather general implementation to be used with learner$new can look something like this
learner_fallback(original, fallback) { … }
original, fallback are both learner objects

  1. estimation fails for original learner - > use fallback learner
  2. prediction fails for original learner -> use fallback learner (therefore, we always need to estimate the fallback learner)

2 checks

  1. convergence
  2. error during estimation -> tryCatch

We should review if we need this fallback behaviour only for the superlearner. I can only come up with rare use-cases (mostly for debugging or experimentation) where one would like this feature to be available for a single learner to be used as the outcome.model in cate. This can obviously be done by using learner_sl with a single base learner and fallback learner.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions