-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove task prototype when resample #981
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think we should:
- Add the column names to the learner state, then after the new version of mlr3 is released, we can change the
ordered_features()
function from mlr3learners/ mlr3extralearners - Start removing the unused data_prototype (?)
R/worker.R
Outdated
# repeated saving of the prototype leads to large ResultData objects if the task contains many columns, factor levels or attributes | ||
learner$state$data_prototype = NULL | ||
learner$state$task_prototype = NULL | ||
learner$fallback$state$data_prototype = NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check first whether fallback exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no error even if the fallback does not exist.
I will open an PR at vetiver. |
Blocked by mlr-org/mlr3learners#278. |
No description provided.