Skip to content
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

New PipeOpEncodePL for Piecewise Linear Encoding #861

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

advieser
Copy link
Collaborator

closes #813

private$.tree_learner = LearnerClassifRpart$new()
} else {
stopf("Task type %s not supported", task_type)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don‘t need task_type if we use method = "quantiles", meaning that we should only check this in that case and don‘t throw an error, etc. We could set task type as "Task" by default …
However, mlr_reflections$task_types does not contain this as an acceptable name, so change the assert.

t = task$clone(deep = TRUE)$select(col)
splits = learner$train(t)$model$splits
# Get column "index" in model splits
boundaries = unname(sort(splits[, "index"]))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can simplify this into one line now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regression tree based binning of cts features
1 participant