Learn R Programming

rminer (version 1.1)

predict.fit: predict method for fit objects (rminer)

Description

predict method for fit objects (rminer)

Arguments

object
a model object created by fit
newdata
a data frame or matrix containing new data

Value

  • If task is prob returns a matrix, where each column is the class probability. If task is class returns a factor. If task is reg returns a numeric vector.

References

  • To check for more details about rminer and for citation purposes: P. Cortez. Data Mining with Neural Networks and Support Vector Machines Using the R/rminer Tool. In P. Perner (Ed.), Advances in Data Mining - Applications and Theoretical Aspects 10th Industrial Conference on Data Mining (ICDM 2010), Lecture Notes in Artificial Intelligence 6171, pp. 572-583, Berlin, Germany, July, 2010. Springer. ISBN: 978-3-642-14399-1. @Springer:http://www.springerlink.com/content/e7u36014r04h0334 http://www3.dsi.uminho.pt/pcortez/2010-rminer.pdf

See Also

fit, mining, mgraph, mmetric, savemining, CasesSeries, lforecast and Importance.

Examples

Run this code
## simple classification example with logistic regression
data(iris)
M=fit(Species~.,iris,model="lr")
P=predict(M,iris)
print(mmetric(iris$Species,P,"CONF")) # confusion matrix

## check also fit for more examples

Run the code above in your browser using DataLab