?? usps2mat.html
字號:
<html><head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"> <title>Contents.m</title><link rel="stylesheet" type="text/css" href="../stpr.css"></head><body><table border=0 width="100%" cellpadding=0 cellspacing=0><tr valign="baseline"><td valign="baseline" class="function"><b class="function">USPS2MAT</b><td valign="baseline" align="right" class="function"><a href="../data/index.html" target="mdsdir"><img border = 0 src="../up.gif"></a></table> <p><b>converts USPS database to Matlab data file (MAT).</b></p> <hr><div class='code'><code><span class=help></span><br><span class=help> <span class=help_field>Description:</span></span><br><span class=help> It creates MAT-file containing training and testing part</span><br><span class=help> of the USPS database of handwritten numerals.</span><br><span class=help></span><br><span class=help> <span class=help_field>Input:</span></span><br><span class=help> It requires input text files "zip.test" and "zip.train"</span><br><span class=help> which can be downloaded from:</span><br><span class=help></span><br><span class=help> http://www-stat-class.stanford.edu/~tibs/ElemStatLearn/datasets/zip.train.gz</span><br><span class=help> http://www-stat-class.stanford.edu/~tibs/ElemStatLearn/datasets/zip.test.gz</span><br><span class=help> </span><br><span class=help> <span class=help_field>Output:</span></span><br><span class=help> The output MAT-file "usps.mat" contains: </span><br><span class=help> trn.X [256 x 7291] Images of training numerals stored as columns.</span><br><span class=help> trn.y [1 x 7291] Labels y==1 -->"1", ..., y==9-->"9",... y==10-->"0".</span><br><span class=help></span><br><span class=help> tst.X [256 x 2007] Images of testing numerals stored as columns.</span><br><span class=help> tst.y [1 x 2007] Labels.</span><br><span class=help></span><br><span class=help> <span class=help_field>Example:</span></span><br><span class=help> The following code displays the first training image.</span><br><span class=help> load usps.mat;</span><br><span class=help> img = reshape(trn.X(:,1),16,16);</span><br><span class=help> figure; </span><br><span class=help> imshow(img,[]);</span><br><span class=help> </span><br></code></div> <hr> <b>Source:</b> <a href= "../data/list/usps2mat.html">usps2mat.m</a> <p><b class="info_field">About: </b> Statistical Pattern Recognition Toolbox<br> (C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac<br> <a href="http://www.cvut.cz">Czech Technical University Prague</a><br> <a href="http://www.feld.cvut.cz">Faculty of Electrical Engineering</a><br> <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a><br> <p><b class="info_field">Modifications: </b> <br> 07-jun-2004, VF<br> 10-mar-2004, VF<br></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -