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?

 採用された回答

per isakson
per isakson 2013 年 1 月 28 日
編集済み: per isakson 2013 年 1 月 28 日

0 投票

  • Putting the training data in a memmapfile might help.
  • standard answer: memory is cheap

10 件のコメント

Lester Lim
Lester Lim 2013 年 1 月 28 日
What's a memmap file? Can matlab variables be saved into it? Pardon me newbie questions...
per isakson
per isakson 2013 年 1 月 28 日
編集済み: per isakson 2013 年 1 月 28 日
You are welcome! The most important MATLAB command is doc. It's limitation is that you need to know a name. Try
doc memmapfile
Lester Lim
Lester Lim 2013 年 1 月 28 日
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?
Lester Lim
Lester Lim 2013 年 1 月 28 日
Tried it, however when I tried to call it out from the GUI, it didn't work...
per isakson
per isakson 2013 年 1 月 28 日
編集済み: per isakson 2013 年 1 月 28 日
  • 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
Lester Lim
Lester Lim 2013 年 1 月 28 日
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...
Walter Roberson
Walter Roberson 2013 年 1 月 28 日
Write the imported data to a file in binary format. You can then memory map the binary file.
Lester Lim
Lester Lim 2013 年 1 月 28 日
But by writing into a binary format, won't everything become ones and zeros?
per isakson
per isakson 2013 年 1 月 28 日
Lester Lim
Lester Lim 2013 年 1 月 29 日
Il try...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by