save RandomForest B and use -v7.3 switch

1 回表示 (過去 30 日間)
YOGESH
YOGESH 2011 年 12 月 22 日
回答済み: sinlin ray 2016 年 2 月 16 日
Hello I have a code of feature selection (backward) and I use Random Forest. I have matlab 7.12.0(R2011a) and I run the code parallel using 8 CPUs.
B = TreeBagger(100, predictors, target);
Then I get B, MSE and ntrees. next, I predict as
Ymodel = oobPredict(B);
and the save as
savepath = ('/Net/myname/');
sp = [savepath 'MSE_Ymodel_B.mat'];
save(sp, 'Ymodel, 'MSE', 'ntrees','B');
But after the job is finished successfuly, I get a warning messege and only 'B' is not being saved. The messege I received is
{Warning: Variable 'B' cannot be saved to a MAT-file whose version is older than 7.3. To save this variable, use the -v7.3 switch. Skipping...}
Can anybody tell me how to use -v7.3 switch?
cheers, Yogesh

回答 (1 件)

sinlin ray
sinlin ray 2016 年 2 月 16 日
you just need change the saving preference. preference—matlab-general-matfiles

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by