savemining | R Documentation |
Load/save into a file the result of a fit
(model) or mining
functions.
savemining(mmm_mining, file, ascii = TRUE)
mmm_mining |
the list object that is returned by the |
file |
filename that should include an extension |
ascii |
if |
Very simple functions that do what their names say. Additional usages are:
loadmining(file)
savemodel(MM_model,file,ascii=FALSE)
loadmodel(file)
loadmining
returns a mining
mining list, while loadmodel
returns a model
object (from fit
).
Paulo Cortez http://www3.dsi.uminho.pt/pcortez/
See fit
.
fit
, predict.fit
, mining
, mgraph
, mmetric
, savemining
, Importance
.
### dontrun is used here to avoid the creation of a new file
### in the CRAN servers. The example should work fine:
## Not run:
data(iris)
M=fit(Species~.,iris,model="rpart")
tempdirpath=tempdir()
filename=paste(tempdirpath,"/iris.model",sep="")
savemodel(M,filename) # saves to file
M=NULL # cleans M
M=loadmodel(filename) # load from file
print(M)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.