Description Usage Arguments Value Author(s) References See Also Examples
This function tests if a task defined by a formula over a data set is a regression task, which will be the case if the target variable is numeric.
1 | is.regression(task)
|
task |
An object of class |
A logical value
Luis Torgo ltorgo@dcc.fc.up.pt
Torgo, L. (2014) An Infra-Structure for Performance Estimation and Experimental Comparison of Predictive Models in R. arXiv:1412.0436 [cs.MS] http://arxiv.org/abs/1412.0436
1 2 3 | data(iris)
tsk <- PredTask(Species ~ .,iris)
if (!is.regression(tsk)) cat("This is not a regression task!\n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.