Tests the trained model on the provided data
Usage
test(models, tester, forecaster, scorer, indices, ...)
# S4 method for TrainedList,Tester,ANY,ANY,ANY
test(models, tester, forecaster, scorer, indices, ...)
# S4 method for Trained,Tester,missing,missing,missing
test(models, tester, logger, ...)
# S4 method for Trained,missing,Forecaster,Scorer,missing
test(
models,
forecaster,
scorer,
newx,
newoffset,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
logger,
...
)
# S4 method for Trained,missing,Forecaster,ANY,numeric
test(
models,
forecaster,
scorer,
newx,
newoffset,
newy,
weights = NULL,
indices,
...
)
# S4 method for Trained,missing,Forecaster,ScorerList,missing
test(
models,
forecaster,
scorer,
newx,
newoffset,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
logger = Logger(verbose = FALSE),
...
)
# S4 method for TrainedList,missing,Forecaster,ScorerList,missing
test(models, forecaster, scorer, logger, ...)
# S4 method for TrainedList,missing,Forecaster,Scorer,missing
test(models, forecaster, scorer, logger, ...)
# S4 method for TrainedList,Tester,missing,missing,list
test(models, tester, forecaster, scorer, indices, ...)
# S4 method for TrainedList,missing,Forecaster,Scorer,list
test(
models,
forecaster,
scorer,
indices,
screened = NULL,
newx,
newoffset = NULL,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
looper = Looper(),
logger,
check.input = FALSE,
...
)
# S4 method for TrainedList,missing,Forecaster,ScorerList,list
test(
models,
forecaster,
scorer,
indices,
screened = NULL,
newx,
newoffset = NULL,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
looper,
logger,
...
)
# S4 method for ANY,Tester,missing,missing,ANY
test(models, tester, forecaster, scorer, indices, ...)
# S4 method for TunedList,missing,Forecaster,Scorer,list
test(
models,
forecaster,
scorer,
indices,
screened = NULL,
newx,
newoffset = NULL,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
looper = Looper(),
logger,
...
)
# S4 method for TunedList,missing,Forecaster,ScorerList,list
test(
models,
forecaster,
scorer,
indices,
screened = NULL,
newx,
newoffset = NULL,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
looper = Looper(),
logger,
...
)
# S4 method for list,missing,Forecaster,Scorer,list
test(
models,
forecaster,
scorer,
indices,
screened = NULL,
newx,
newoffset = NULL,
newy,
weights = NULL,
score.type = c("mean_score", "summary_score", "score", "score_and_summary"),
min.obs = 3,
looper = Looper(),
logger,
...
)
Arguments
- models
a list of TrainedList objects
- tester
a Tester object
- indices
list of indices used to subset x, y, weights, offset when training the model
- ...
further arguments to scorer function
- logger
a Logger object
- newx
the predictors matrix
- newoffset
offset
- newy
the response
- weights
observations weights (i.e. response prior)
- score.type
the score type to return, one of
score
the accuracy measure
mean_score
estimate of the mean error obtained from the samples
summary_score
estimate of the mean error and its standard error
- screened
list of screened features
- looper
a Looper object