Borrar filtros
Borrar filtros

Is it possible to save matlab classifier workspace?

2 visualizaciones (últimos 30 días)
Zeynab Mousavikhamene
Zeynab Mousavikhamene el 9 de Mzo. de 2020
Comentada: Ameer Hamza el 12 de Oct. de 2020
I need to save matlab classifier workspace so that later I can do some processes without the need to run the models from the scratch. Is this possible?

Respuestas (1)

Ameer Hamza
Ameer Hamza el 9 de Mzo. de 2020
Editada: Ameer Hamza el 9 de Mzo. de 2020
You can use save function to save any MATLAB variable in a .mat file. For example,
load ionosphere
tc = fitctree(X,Y);
save('classification_model.mat', 'tc');
Then you can load the trained model using
load('classification_model.mat');
  4 comentarios
Amelia
Amelia el 11 de Oct. de 2020
@ Ameer Hamza i have the same problem, i have trained some classifiers and save them in 7.3 format, but when i try to load them they donnot load. they have been load many times but after some time they didnot load any more!!
Ameer Hamza
Ameer Hamza el 12 de Oct. de 2020
What happen when you try to load them? Is there any error? Try saving in v7 format.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by