資源簡介
用matlab 生成HDF5,具體的信息見博文
代碼片段和文件信息
function?[curr_dat_sz?curr_lab_sz]?=?store2hdf5(filename?data?labels?create?startloc?chunksz)??
??%?*data*?is?W*H*C*N?matrix?of?images?should?be?normalized?(e.g.?to?lie?between?0?and?1)?beforehand
??%?*label*?is?D*N?matrix?of?labels?(D?labels?per?sample)?
??%?*create*?[0/1]?specifies?whether?to?create?file?newly?or?to?append?to?previously?created?file?useful?to?store?information?in?batches?when?a?dataset?is?too?big?to?be?held?in?memory??(default:?1)
??%?*startloc*?(point?at?which?to?start?writing?data).?By?default?
??%?if?create=1?(create?mode)?startloc.data=[1?1?1?1]?and?startloc.lab=[1?1];?
??%?if?create=0?(append?mode)?startloc.data=[1?1?1?K+1]?and?startloc.lab?=?[1?K+1];?where?K?is?the?current?number?of?samples?stored?in?the?HDF
??%?chunksz?(used?only?in?create?mode)?specifies?number?of?samples?to?be?stored?per?chunk?(see?HDF5?documentation?on?chunking)?for?creating?HDF5?files?with?unbounded?maximum?size?-?TLDR;?higher?chunk?sizes?allow?faster?read-write?operati
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1956??2015-02-03?12:41??testHDF5.m
?????文件????????2954??2015-02-03?12:39??store2hdf5.m
- 上一篇:802.11的Matlab程序
- 下一篇:mmn排隊論matlab GUI源文件
評論
共有 條評論