Calling an Inducer with a named argument should change the config of the inducer
Thus return a new Inducer with the previous + new config
Calling Inducer with unnamed argument or .data should create a Model
Implement different Inducers
[ ] LinearModel
[ ] XGBoost
[ ] Implement printer for Inducer class
print.Inducer
[ ] Implement generic for hyperparameters (if not already done in #11 )
[ ] Implement generic for configuration
[ ] Implement generic for configuration<-
Description
An "Inducer" is an algorithm that is used to learn a model or hypothesis from a training dataset.
Inducers are the functions that do the actual model-fitting.
They have configuration parameters ("hyperparameters") that can influence their functionality.
An example for a hyperparameter is the nrounds argument given to xgboost.
mlr.mini should provide a collection of inducers.
These should follow the naming scheme InducerXxx.
However, it is convenient to have a central collection of all inducers that are available for mlr.mini.
One should therefore also have an environmentind where inducers are entered as well.
This way, other packages can extend mlr.mini by adding their own inducers.
Inducers are functions with an S3-class that have a nice printer and an implementation for the hyperparameters, configuration and configuration<- generics.
Calling an Inducer with a named argument should change that configuration parameter
(you could use ... here, but it would be nicer if the function has named arguments so that tab-completion works.
Remember the metaprogramming homework on how to construct functions like this).
Calling an Inducer with an unnamed argument (or argument named .data -- the . prevents a collision with the name of a hyperparameter) should create a model.
Tasks
Inducer
classInducer
with a named argument should change the config of the inducerInducer
with unnamed argument or.data
should create aModel
Inducer
classprint.Inducer
hyperparameters
(if not already done in #11 )configuration
configuration<-
Description
An "Inducer" is an algorithm that is used to learn a model or hypothesis from a training dataset. Inducers are the functions that do the actual model-fitting. They have configuration parameters ("hyperparameters") that can influence their functionality. An example for a hyperparameter is the
nrounds
argument given toxgboost
.mlr.mini
should provide a collection of inducers. These should follow the naming schemeInducerXxx
. However, it is convenient to have a central collection of all inducers that are available formlr.mini
. One should therefore also have anenvironment
ind
where inducers are entered as well. This way, other packages can extendmlr.mini
by adding their own inducers.Inducers are functions with an
S3
-class that have a nice printer and an implementation for thehyperparameters
,configuration
andconfiguration<-
generics. Calling an Inducer with a named argument should change that configuration parameter (you could use...
here, but it would be nicer if the function has named arguments so that tab-completion works. Remember the metaprogramming homework on how to construct functions like this). Calling an Inducer with an unnamed argument (or argument named.data
-- the.
prevents a collision with the name of a hyperparameter) should create a model.