Not enough computer memory to train the data...

If my LDA is to train the data but I have not enough computer memory to train the data, what should I do? I tried splitting the data and used one of it to train. However, how should I input the rest of the training data?

 Risposta accettata

per isakson
per isakson il 28 Gen 2013
Modificato: per isakson il 28 Gen 2013
  • Putting the training data in a memmapfile might help.
  • standard answer: memory is cheap

10 Commenti

What's a memmap file? Can matlab variables be saved into it? Pardon me newbie questions...
You are welcome! The most important MATLAB command is doc. It's limitation is that you need to know a name. Try
doc memmapfile
I've read it, but still a bit unsure, I gather it is like not importing the data but rather, calling it from the excel without using memory is that right?
Tried it, however when I tried to call it out from the GUI, it didn't work...
per isakson
per isakson il 28 Gen 2013
Modificato: per isakson il 28 Gen 2013
  • I don't know what you done!
  • What error message you received.
However, I know
  • it is possible to use a memmapfile-object like a huge matrix
  • it is blasting fast - order of magnitude faster than reading from an excel file
The orignial was to import an excel file and write it into a variable. Then I get down to work by separating the labels from the training data... It didn't work with my codes when I put in m = memmapfile(LDA data). Error was undefined variable...
Write the imported data to a file in binary format. You can then memory map the binary file.
But by writing into a binary format, won't everything become ones and zeros?
Il try...

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by