response | R Documentation |
The response is either the class to be predicted for a classification problem
(and it is a factor), or the dependent variable in a regression model (and
it is numeric in that case). For unsupervised classification, response is not
provided and should return NULL
.
response(object, ...)
## Default S3 method:
response(object, ...)
object |
an object having a response variable. |
... |
further parameter (depends on the method). |
The response variable of the training set, or NULL
for unsupervised
classification.
mlearning()
, train()
, confusion()
data("HouseVotes84", package = "mlbench")
house_rf <- ml_rforest(data = HouseVotes84, Class ~ .)
house_rf
response(house_rf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.