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

Skip to content

Add $native_model active binding #1380

@sebffischer

Description

@sebffischer

For some learners, we need to store information beyond the model object from the upstream package.

Therefore, we solve this by making the private $.train function of a learner return something along the lines of:

list(
  model = upstream::train(...),
  info = ...
)

this means that learner$model does now not return the 'native' model, but the named list from above.

We could add support for an active binding $native_model , that can be implemented by learners that do this and which would then return the actual upstream model.

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