I am training a bagFDA model using train()
function in r caret package, and save the model output as a .Rdata file. the input file is about 300k records with 26 variables, but the output .Rdata has a size of 3G. I simply run the following:
modelout <- train(x,y,method="bagFDA")
save(file= "myout.Rdata", modelout)
under a window system.
question: (1) why myout.Rdata
is so big? (2) how can I reduce the size of the file?
Thanks in advance!
JT