View source: R/create_learner.R
create_learner | R Documentation |
Helper function to create a template for a learner, as well as the test and parameter test. For more details see the mlr3book.
create_learner(
path = ".",
classname,
type,
key = tolower(classname),
algorithm,
package,
caller,
feature_types,
predict_types,
properties,
gh_name = "Unknown",
label = toproper(algorithm)
)
path |
( |
classname |
( |
type |
( |
key |
( |
algorithm |
( |
package |
( |
caller |
|
feature_types |
( |
predict_types |
( |
properties |
( |
gh_name |
( |
label |
( |
## Not run:
path = tempfile()
dir.create(path)
create_learner(
path = path,
classname = "Rpart",
type = "classif",
key = "rpart",
algorithm = "Decision Tree",
package = "rpart",
caller = "rpart",
feature_types = c("logical", "integer", "numeric", "factor", "ordered"),
predict_types = c("response", "prob"),
properties = c("importance", "missings", "multiclass", "twoclass", "weights"),
gh_name = "RaphaelS1",
label = "Regression and Partition Tree"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.