You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by bu...@apache.org on 2016/01/13 04:47:58 UTC

svn commit: r977575 [17/19] - in /websites/staging/singa/trunk/content: ./ community/ develop/ docs/ docs/jp/ docs/kr/ docs/zh/ releases/ v0.1.0/

Added: websites/staging/singa/trunk/content/docs/kr/programming-guide.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/kr/programming-guide.html (added)
+++ websites/staging/singa/trunk/content/docs/kr/programming-guide.html Wed Jan 13 03:47:56 2016
@@ -0,0 +1,408 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-01-13 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160113" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; Programming Guide</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa">
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
+        src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../docs/overview.html"  title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../../docs/quick-start.html"  title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../../downloads.html"  title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../../docs/index.html"  title="Latest">Latest</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../docs/installation.html"  title="Installation">Installation</a>
+</li>
+                                  <li>      <a href="../../docs/programmer-guide.html"  title="Programmer Guide">Programmer Guide</a>
+</li>
+                                  <li>      <a href="../../docs/distributed-training.html"  title="Distributed Training">Distributed Training</a>
+</li>
+                                  <li>      <a href="../../docs/data.html"  title="Data Preparation">Data Preparation</a>
+</li>
+                                  <li>      <a href="../../docs/checkpoint.html"  title="Checkpoint">Checkpoint</a>
+</li>
+                                  <li>      <a href="../../docs/test.html"  title="Test">Test</a>
+</li>
+                                  <li>      <a href="../../docs/examples.html"  title="Examples">Examples</a>
+</li>
+                                  <li>      <a href="../../docs/debug.html"  title="Debug">Debug</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../../v0.1.0/index.html"  title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../develop/schedule.html"  title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="../../develop/how-contribute.html"  title="How to Contribute">How to Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a href="../../develop/contribute-docs.html"  title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../community/source-repository.html"  title="Source Repository">Source Repository</a>
+</li>
+                  
+                      <li>      <a href="../../community/mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../../community/issue-tracking.html"  title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../../community/team-list.html"  title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/"  title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/"  title="NUS Site">NUS Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../../index.html" id="bannerLeft" title="Apache SINGA">
+                                                                                                <img src="../../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                                                <img src="../../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Programming Guide</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../../docs/overview.html" title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../docs/quick-start.html" title="Quick Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
+      <li>
+  
+                          <a href="../../docs/index.html" title="Latest">
+          <span class="icon-chevron-right"></span>
+        Latest</a>
+                  </li>
+                
+      <li>
+  
+                          <a href="../../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../../develop/schedule.html" title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                                    
+      <li>
+  
+                          <a href="../../develop/how-contribute.html" title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../../community/source-repository.html" title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/mail-lists.html" title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/issue-tracking.html" title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/team-list.html" title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/" class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/" class="externalLink" title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                                                                   <a href="http://incubator.apache.org" title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" src="http://incubator.apache.org/images/egg-logo.png"    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>Programming Guide</h1>
+<hr />
+<p>To submit a training job, users must provide the configuration of the four components shown in Figure 1:</p>
+
+<ul>
+  
+<li>a <a href="neural-net.html">NeuralNet</a> describing the neural net structure with the detailed layer setting and their connections;</li>
+  
+<li>a <a href="train-one-batch.html">TrainOneBatch</a> algorithm which is tailored for different model categories;</li>
+  
+<li>an <a href="updater.html">Updater</a> defining the protocol for updating parameters at the server side;</li>
+  
+<li>a <a href="distributed-training.html">Cluster Topology</a> specifying the distributed architecture of workers and servers.</li>
+</ul>
+<p>The <i>Basic user guide</i> section describes how to submit a training job using built-in components; while the <i>Advanced user guide</i> section presents details on writing user&#x2019;s own main function to register components implemented by themselves. In addition, the training data must be prepared, which has the same <a href="data.html">process</a> for both advanced users and basic users.</p>
+<p><img src="../images/overview.png" align="center" width="400px" alt="" /> <span><b>Figure 1 - SINGA overview.</b></span></p>
+<div class="section">
+<h2><a name="Basic_user_guide"></a>Basic user guide</h2>
+<p>Users can use the default main function provided SINGA to submit the training job. For this case, a job configuration file written as a google protocol buffer message for the <a href="../api/classsinga_1_1JobProto.html">JobProto</a> must be provided in the command line,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">./bin/singa-run.sh -conf &lt;path to job conf&gt; [-resume]
+</pre></div></div>
+<p><tt>-resume</tt> is for continuing the training from last <a href="checkpoint.html">checkpoint</a>. The <a href="mlp.html">MLP</a> and <a href="cnn.html">CNN</a> examples use built-in components. Please read the corresponding pages for their job configuration files. The subsequent pages will illustrate the details on each component of the configuration.</p></div>
+<div class="section">
+<h2><a name="Advanced_user_guide"></a>Advanced user guide</h2>
+<p>If a user&#x2019;s model contains some user-defined components, e.g., <a href="updater.html">Updater</a>, he has to write a main function to register these components. It is similar to Hadoop&#x2019;s main function. Generally, the main function should</p>
+
+<ul>
+  
+<li>
+<p>initialize SINGA, e.g., setup logging.</p></li>
+  
+<li>
+<p>register user-defined components.</p></li>
+  
+<li>
+<p>create and pass the job configuration to SINGA driver</p></li>
+</ul>
+<p>An example main function is like</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">#include &quot;singa.h&quot;
+#include &quot;user.h&quot;  // header for user code
+
+int main(int argc, char** argv) {
+  singa::Driver driver;
+  driver.Init(argc, argv);
+  bool resume;
+  // parse resume option from argv.
+
+  // register user defined layers
+  driver.RegisterLayer&lt;FooLayer&gt;(kFooLayer);
+  // register user defined updater
+  driver.RegisterUpdater&lt;FooUpdater&gt;(kFooUpdater);
+  ...
+  auto jobConf = driver.job_conf();
+  //  update jobConf
+
+  driver.Train(resume, jobConf);
+  return 0;
+}
+</pre></div></div>
+<p>The Driver class&#x2019; <tt>Init</tt> method will load a job configuration file provided by users as a command line argument (<tt>-conf &lt;job conf&gt;</tt>). It contains at least the cluster topology and returns the <tt>jobConf</tt> for users to update or fill in configurations of neural net, updater, etc. If users define subclasses of Layer, Updater, Worker and Param, they should register them through the driver. Finally, the job configuration is submitted to the driver which starts the training.</p>
+<p>We will provide helper functions to make the configuration easier in the future, like <a class="externalLink" href="https://github.com/fchollet/keras">keras</a>.</p>
+<p>Users need to compile and link their code (e.g., layer implementations and the main file) with SINGA library (<i>.libs/libsinga.so</i>) to generate an executable file, e.g., with name <i>mysinga</i>. To launch the program, users just pass the path of the <i>mysinga</i> and base job configuration to <i>./bin/singa-run.sh</i>.</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">./bin/singa-run.sh -conf &lt;path to job conf&gt; -exec &lt;path to mysinga&gt; [other arguments]
+</pre></div></div>
+<p>The <a href="rnn.html">RNN application</a> provides a full example of implementing the main function for training a specific RNN model.</p></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. Apache Singa, Apache, the Apache feather logo, and the Apache Singa project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/singa/trunk/content/docs/kr/quick-start.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/kr/quick-start.html (added)
+++ websites/staging/singa/trunk/content/docs/kr/quick-start.html Wed Jan 13 03:47:56 2016
@@ -0,0 +1,409 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-01-13 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160113" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; 퀵 스타트</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa">
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
+        src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../docs/overview.html"  title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../../docs/quick-start.html"  title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../../downloads.html"  title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../../docs/index.html"  title="Latest">Latest</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../docs/installation.html"  title="Installation">Installation</a>
+</li>
+                                  <li>      <a href="../../docs/programmer-guide.html"  title="Programmer Guide">Programmer Guide</a>
+</li>
+                                  <li>      <a href="../../docs/distributed-training.html"  title="Distributed Training">Distributed Training</a>
+</li>
+                                  <li>      <a href="../../docs/data.html"  title="Data Preparation">Data Preparation</a>
+</li>
+                                  <li>      <a href="../../docs/checkpoint.html"  title="Checkpoint">Checkpoint</a>
+</li>
+                                  <li>      <a href="../../docs/test.html"  title="Test">Test</a>
+</li>
+                                  <li>      <a href="../../docs/examples.html"  title="Examples">Examples</a>
+</li>
+                                  <li>      <a href="../../docs/debug.html"  title="Debug">Debug</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../../v0.1.0/index.html"  title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../develop/schedule.html"  title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="../../develop/how-contribute.html"  title="How to Contribute">How to Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a href="../../develop/contribute-docs.html"  title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../community/source-repository.html"  title="Source Repository">Source Repository</a>
+</li>
+                  
+                      <li>      <a href="../../community/mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../../community/issue-tracking.html"  title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../../community/team-list.html"  title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/"  title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/"  title="NUS Site">NUS Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../../index.html" id="bannerLeft" title="Apache SINGA">
+                                                                                                <img src="../../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                                                <img src="../../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">퀵 스타트</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../../docs/overview.html" title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../docs/quick-start.html" title="Quick Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
+      <li>
+  
+                          <a href="../../docs/index.html" title="Latest">
+          <span class="icon-chevron-right"></span>
+        Latest</a>
+                  </li>
+                
+      <li>
+  
+                          <a href="../../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../../develop/schedule.html" title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                                    
+      <li>
+  
+                          <a href="../../develop/how-contribute.html" title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../../community/source-repository.html" title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/mail-lists.html" title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/issue-tracking.html" title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/team-list.html" title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/" class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/" class="externalLink" title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                                                                   <a href="http://incubator.apache.org" title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" src="http://incubator.apache.org/images/egg-logo.png"    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>&#xd035; &#xc2a4;&#xd0c0;&#xd2b8;</h1>
+<hr />
+<div class="section">
+<h2><a name="SINGA_"></a>SINGA &#xc778;&#xc2a4;&#xd1a8;</h2>
+<p>SINGA &#xc778;&#xc2a4;&#xd1a8;&#xc740; <a href="installation.html">&#xc5ec;&#xae30;</a>&#xb97c; &#xcc38;&#xc870;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p>
+<div class="section">
+<h3><a name="Zookeeper_"></a>Zookeeper &#xc2e4;&#xd589;</h3>
+<p>SINGA &#xd2b8;&#xb808;&#xc774;&#xb2dd;&#xc740; <a class="externalLink" href="https://zookeeper.apache.org/">zookeeper</a>&#xb97c; &#xc774;&#xc6a9;&#xd569;&#xb2c8;&#xb2e4;. &#xc6b0;&#xc120; zookeeper &#xc11c;&#xbe44;&#xc2a4;&#xac00; &#xc2dc;&#xc791;&#xb418;&#xc5b4; &#xc788;&#xb294;&#xc9c0; &#xd655;&#xc778;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p>
+<p>&#xc900;&#xbe44;&#xb41c; thirdparty &#xc2a4;&#xd06c;&#xb9bd;&#xd2b8;&#xb97c; &#xc0ac;&#xc6a9;&#xd558;&#xc5ec; zookeeper&#xb97c; &#xc124;&#xce58; &#xd55c; &#xacbd;&#xc6b0; &#xb2e4;&#xc74c; &#xc2a4;&#xd06c;&#xb9bd;&#xd2b8;&#xb97c; &#xc2e4;&#xd589;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;#goto top level folder &#xa0;&#xa0;&#xa0;&#xa0;cd SINGA_ROOT &#xa0;&#xa0;&#xa0;&#xa0;./bin/zk-service.sh start</p>
+<p>(<tt>./bin/zk-service.sh stop</tt> // zookeeper &#xc911;&#xc9c0;).</p>
+<p>&#xae30;&#xbcf8; &#xd3ec;&#xd2b8;&#xb97c; &#xc0ac;&#xc6a9;&#xd558;&#xc9c0; &#xc54a;&#xace0; zookeeper&#xb97c; &#xc2dc;&#xc791;&#xc2dc;&#xd0ac; &#xb54c;<tt>conf / singa.conf</tt>&#xc744; &#xd3b8;&#xc9d1;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;zookeeper_host : &#x201c;localhost : YOUR_PORT&#x201d;</p></div></div>
+<div class="section">
+<h2><a name="a__"></a>&#xb3c5;&#xb9bd;&#xd615; &#xbaa8;&#xb4dc;&#xc5d0;&#xc11c; &#xc2e4;&#xd589;</h2>
+<p>&#xb3c5;&#xb9bd;&#xd615; &#xbaa8;&#xb4dc;&#xc5d0;&#xc11c; SINGA&#xc744; &#xc2e4;&#xd589;&#xd560; &#xb54c;, <a class="externalLink" href="http://mesos.apache.org/">Mesos</a>&#xc640; [YARN](<a class="externalLink" href="http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-">http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-</a> yarn-site / YARN.html)&#xacfc; &#xac19;&#xc740; &#xd074;&#xb7ec;&#xc2a4;&#xd130; &#xad00;&#xb9ac;&#xc790; &#xc774;&#xc6a9;&#xd558;&#xc9c0; &#xc54a;&#xb294; &#xacbd;&#xc6b0;&#xb97c; &#xb9d0;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<div class="section">
+<h3><a name="Single__"></a>Single &#xb178;&#xb4dc;&#xc5d0;&#xc11c;&#xc758; &#xd6c8;&#xb828;</h3>
+<p>&#xd558;&#xb098;&#xc758; &#xd504;&#xb85c;&#xc138;&#xc2a4;&#xac00; &#xcd9c;&#xc2dc;&#xb429;&#xb2c8;&#xb2e4;. &#xc608;&#xb97c; &#xb4e4;&#xc5b4;, <a class="externalLink" href="http://www.cs.toronto.edu/~kriz/cifar.html">CIFAR-10</a> &#xb370;&#xc774;&#xd130; &#xc138;&#xd2b8;&#xb97c; &#xc774;&#xc6a9;&#xd558;&#xc5ec; <a class="externalLink" href="http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks">CNN &#xbaa8;&#xb378;</a>&#xc744; &#xd2b8;&#xb808;&#xc774;&#xb2dd;&#xc2dc;&#xd0b5;&#xb2c8;&#xb2e4;. &#xd558;&#xc774;&#xd37c; &#xd30c;&#xb77c;&#xbbf8;&#xd130;&#xb294; <a class="externalLink" href="https://code.google.com/p/cuda-convnet/">cuda-convnet</a>&#xc5d0; &#xb530;&#xb77c; &#xc124;&#xc815;&#xb418;&#xc5b4; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. &#xc790;&#xc138;&#xd55c; &#xb0b4;&#xc6a9;&#xc740; <a href="cnn.html">CNN &#xc0d8;&#xd50c;</a> &#xd398;&#xc774;&#xc9c0;&#xb97c; &#xcc38;&#xc870;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p>
+<div class="section">
+<h4><a name="a__"></a>&#xb370;&#xc774;&#xd130;&#xc640; &#xc791;&#xc5c5; &#xc124;&#xc815;</h4>
+<p>&#xb370;&#xc774;&#xd130; &#xc138;&#xd2b8; &#xb2e4;&#xc6b4;&#xb85c;&#xb4dc;&#xc640; Triaing&#xc774;&#xb098; Test&#xb97c;&#xc704;&#xd55c; &#xb370;&#xc774;&#xd130; &#xc0e4;&#xb4dc;&#xc758; &#xc0dd;&#xc131;&#xc740; &#xb2e4;&#xc74c;&#xacfc; &#xac19;&#xc774; &#xc2e4;&#xc2dc;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;cd examples / cifar10 / &#xa0;&#xa0;&#xa0;&#xa0;cp Makefile.example Makefile &#xa0;&#xa0;&#xa0;&#xa0;make download &#xa0;&#xa0;&#xa0;&#xa0;make create</p>
+<p>Training&#xacfc; Test &#xb370;&#xc774;&#xd130; &#xc138;&#xd2b8;&#xb294; &#xac01;&#xac01; * cifar10-train-shard * &#xadf8;&#xb9ac;&#xace0; * cifar10-test-shard * &#xd3f4;&#xb354;&#xc5d0; &#xb9cc;&#xb4e4;&#xc5b4;&#xc9d1;&#xb2c8;&#xb2e4;. &#xbaa8;&#xb4e0; &#xc774;&#xbbf8;&#xc9c0;&#xc758; &#xd2b9;&#xc9d5; &#xd3c9;&#xade0;&#xc744; &#xbb18;&#xc0ac; &#xd55c; * image_mean.bin * &#xd30c;&#xc77c;&#xb3c4; &#xc0dd;&#xc131;&#xb429;&#xb2c8;&#xb2e4;.</p>
+<p>CNN &#xbaa8;&#xb378; &#xd559;&#xc2b5;&#xc5d0; &#xd544;&#xc694;&#xd55c; &#xc18c;&#xc2a4; &#xcf54;&#xb4dc;&#xb294; &#xbaa8;&#xb4e0; SINGA&#xc5d0; &#xd3ec;&#xd568;&#xb418;&#xc5b4; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. &#xcf54;&#xb4dc;&#xb97c; &#xcd94;&#xac00; &#xd560; &#xd544;&#xc694;&#xac00; &#xc5c6;&#xc2b5;&#xb2c8;&#xb2e4;. &#xc791;&#xc5c5; &#xc124;&#xc815; &#xd30c;&#xc77c; (<i>job.conf</i>) &#xc744; &#xc9c0;&#xc815;&#xd558;&#xc5ec; &#xc2a4;&#xd06c;&#xb9bd;&#xd2b8; (<i>.. / .. / bin / singa-run.sh</i>)&#xb97c; &#xc2e4;&#xd589;&#xd569;&#xb2c8;&#xb2e4;. SINGA &#xcf54;&#xb4dc;&#xb97c; &#xbcc0;&#xacbd;&#xd558;&#xac70;&#xb098; &#xcd94;&#xac00; &#xd560; &#xb54c;, &#xd504;&#xb85c;&#xadf8;&#xb798;&#xbc0d; &#xac00;&#xc774;&#xb4dc; (programming-guide.html)&#xb97c; &#xcc38;&#xc870;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p></div>
+<div class="section">
+<h4><a name="a__"></a>&#xbcd1;&#xb82c;&#xd654; &#xc5c6;&#xc774; &#xd2b8;&#xb808;&#xc774;&#xb2dd;</h4>
+<p>Cluster Topology&#xc758; &#xae30;&#xbcf8;&#xac12;&#xc740; &#xd558;&#xb098;&#xc758; worker&#xc640; &#xd558;&#xb098;&#xc758; server&#xac00; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. &#xb370;&#xc774;&#xd130;&#xc640; &#xc2e0;&#xacbd;&#xb9dd;&#xc758; &#xbcd1;&#xb82c; &#xcc98;&#xb9ac;&#xb294;&#xb418;&#xc9c0; &#xc54a;&#xc2b5;&#xb2c8;&#xb2e4;.</p>
+<p>&#xd6c8;&#xb828;&#xc744; &#xc2dc;&#xc791;&#xd558;&#xb824;&#xba74; &#xb2e4;&#xc74c; &#xc2a4;&#xd06c;&#xb9bd;&#xd2b8;&#xb97c; &#xc2e4;&#xd589;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;# goto top level folder &#xa0;&#xa0;&#xa0;&#xa0;cd ../../ &#xa0;&#xa0;&#xa0;&#xa0;./bin/singa-run.sh -conf examples/cifar10/job.conf</p>
+<p>&#xd604;&#xc7ac; &#xc2e4;&#xd589;&#xc911;&#xc778; &#xc791;&#xc5c5;&#xc758; &#xbaa9;&#xb85d;&#xc744; &#xbcf4;&#xb824;&#xba74;</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;./bin/singa-console.sh list</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;JOB ID | NUM PROCS &#xa0;&#xa0;&#xa0;&#xa0;&#x2014;&#x2014;&#x2014;- | &#x2014;&#x2014;&#x2014;&#x2013; &#xa0;&#xa0;&#xa0;&#xa0;24 | 1</p>
+<p>&#xc791;&#xc5c5; &#xc885;&#xb8cc;&#xd558;&#xb824;&#xba74;</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;./bin/singa-console.sh kill JOB_ID</p>
+<p>&#xb85c;&#xadf8; &#xbc0f; &#xc791;&#xc5c5; &#xc815;&#xbcf4; * / tmp / singa-log * &#xd3f4;&#xb354;&#xc5d0; &#xc800;&#xc7a5;&#xb429;&#xb2c8;&#xb2e4;. * conf / singa.conf * &#xd30c;&#xc77c;<tt>log-dir</tt>&#xc5d0;&#xc11c; &#xbcc0;&#xacbd; &#xac00;&#xb2a5;&#xd569;&#xb2c8;&#xb2e4;.</p></div>
+<div class="section">
+<h4><a name="a__"></a>&#xbe44;&#xb3d9;&#xae30; &#xbcd1;&#xb82c; &#xd2b8;&#xb808;&#xc774;&#xb2dd;</h4>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;# job.conf &#xa0;&#xa0;&#xa0;&#xa0;&#x2026; &#xa0;&#xa0;&#xa0;&#xa0;cluster { &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;nworker_groups : 2 &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;nworkers_per_procs : 2 &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;workspace : &#x201c;examples/cifar10/&#x201d; &#xa0;&#xa0;&#xa0;&#xa0;}</p>
+<p>&#xc5ec;&#xb7ec; worker &#xadf8;&#xb8f9;&#xc744; &#xcd9c;&#xc2dc;&#xd568;&#xc73c;&#xb85c;&#xc368; In SINGA, &#xbe44;&#xb3d9;&#xae30; &#xd2b8;&#xb808;&#xc774;&#xb2dd; (architecture.html)&#xc744; &#xc218;&#xd589; &#xd560; &#xc218; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. &#xc608;&#xb97c; &#xb4e4;&#xc5b4;, <i>job.conf</i> &#xc744; &#xc704;&#xc640; &#xac19;&#xc774; &#xbcc0;&#xacbd;&#xd569;&#xb2c8;&#xb2e4;. &#xae30;&#xbcf8;&#xc801;&#xc73c;&#xb85c; &#xd558;&#xb098;&#xc758; worker &#xadf8;&#xb8f9;&#xc774; &#xd558;&#xb098;&#xc758; worker&#xb97c; &#xac16;&#xb3c4;&#xb85d; &#xc124;&#xc815;&#xb418;&#xc5b4; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. &#xc704;&#xc758; &#xc124;&#xc815;&#xc740; &#xd558;&#xb098;&#xc758; &#xd504;&#xb85c;&#xc138;&#xc2a4;&#xc5d0; 2 &#xac1c;&#xc758; worker&#xac00; &#xc124;&#xc815;&#xb418;&#xc5b4; &#xc788;&#xae30; &#xb54c;&#xbb38;&#xc5d0; 2 &#xac1c;&#xc758; worker &#xadf8;&#xb8f9;&#xc774; &#xb3d9;&#xc77c;&#xd55c; &#xd504;&#xb85c;&#xc138;&#xc2a4;&#xb85c; &#xc2e4;&#xd589;&#xb429;&#xb2c8
 ;&#xb2e4;. &#xacb0;&#xacfc; &#xba54;&#xbaa8;&#xb9ac; [Downpour (frameworks.html) &#xd2b8;&#xb808;&#xc774;&#xb2dd; &#xd504;&#xb808;&#xc784; &#xc6cc;&#xd06c;&#xb85c; &#xc2e4;&#xd589;&#xb429;&#xb2c8;&#xb2e4;.</p>
+<p>&#xc0ac;&#xc6a9;&#xc790;&#xb294; &#xb370;&#xc774;&#xd130;&#xc758; &#xbd84;&#xc0b0;&#xc744; &#xc2e0;&#xacbd; &#xc4f8; &#xd544;&#xc694;&#xb294; &#xc5c6;&#xc2b5;&#xb2c8;&#xb2e4;. &#xb79c;&#xb364; &#xc624;&#xd504;&#xc14b;&#xc5d0; &#xb530;&#xb77c; &#xac01; worker &#xadf8;&#xb8f9;&#xc5d0; &#xb370;&#xc774;&#xd130;&#xac00; &#xbcf4;&#xb0b4;&#xc9d1;&#xb2c8;&#xb2e4;. &#xac01; worker&#xb294; &#xb2e4;&#xb978; &#xb370;&#xc774;&#xd130; &#xd30c;&#xd2f0;&#xc158;&#xc744; &#xb2f4;&#xb2f9;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;# job.conf &#xa0;&#xa0;&#xa0;&#xa0;&#x2026; &#xa0;&#xa0;&#xa0;&#xa0;neuralnet { &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;layer { &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#x2026; &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;sharddata_conf { &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;random_skip : 5000 &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;} &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;} &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#x2026; &#xa0;&#xa0;&#xa0;&#xa0;}</p>
+<p>&#xc2a4;&#xd06c;&#xb9bd;&#xd2b8; &#xc2e4;&#xd589; :</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;./bin/singa-run.sh -conf examples/cifar10/job.conf</p></div>
+<div class="section">
+<h4><a name="a__"></a>&#xb3d9;&#xae30;&#xd654; &#xbcd1;&#xb82c; &#xd2b8;&#xb808;&#xc774;&#xb2dd;</h4>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;# job.conf &#xa0;&#xa0;&#xa0;&#xa0;&#x2026; &#xa0;&#xa0;&#xa0;&#xa0;cluster { &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;nworkers_per_group : 2 &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;nworkers_per_procs : 2 &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;workspace : &#x201c;examples/cifar10/&#x201d; &#xa0;&#xa0;&#xa0;&#xa0;}</p>
+<p>&#xd558;&#xb098;&#xc758; worker &#xadf8;&#xb8f9;&#xc73c;&#xb85c; &#xc5ec;&#xb7ec; worker&#xb97c; &#xc2e4;&#xd589;&#xd558;&#xc5ec; &#xb3d9;&#xae30; &#xd2b8;&#xb808;&#xc774;&#xb2dd; (architecture.html)&#xc744; &#xc218;&#xd589; &#xd560; &#xc218; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. &#xc608;&#xb97c; &#xb4e4;&#xc5b4;, <i>job.conf</i> &#xd30c;&#xc77c;&#xc744; &#xc704;&#xc640; &#xac19;&#xc774; &#xbcc0;&#xacbd;&#xd569;&#xb2c8;&#xb2e4;. &#xc704;&#xc758; &#xc124;&#xc815;&#xc740; &#xd558;&#xb098;&#xc758; worker &#xadf8;&#xb8f9;&#xc5d0; 2 &#xac1c;&#xc758; worker&#xac00; &#xc124;&#xc815;&#xb418;&#xc5c8;&#xc2b5;&#xb2c8;&#xb2e4;. worker &#xc6b0;&#xb9ac;&#xb294; &#xadf8;&#xb8f9; &#xb0b4;&#xc5d0;&#xc11c; &#xb3d9;&#xae30;&#xd654;&#xd569;&#xb2c8;&#xb2e4;. &#xc774;&#xac83;&#xc740; &#xba54;&#xbaa8;&#xb9ac; [sandblaster (frameworks.html)&#xb85c; &#xc2e4;&#xd589;&#xb429;&#xb2c8;&#xb2e4;. &#xbaa8;&#xb378;&#xc740; 2 &#xac1c;&#xc758; worker&#xb85c; &#xbd84;&#xd560;&#xb429;&#xb2c8;&#xb2e4;. &#xac01; &#xb808;&
 #xc774;&#xc5b4;&#xac00; 2 &#xac1c;&#xc758; worker&#xb85c; &#xbcf4;&#xb0c5;&#xb2c8;&#xb2e4;. &#xbc30;&#xbd84; &#xb41c; &#xb808;&#xc774;&#xc5b4;&#xb294; &#xc6d0;&#xbcf8; &#xb808;&#xc774;&#xc5b4;&#xc640; &#xae30;&#xb2a5;&#xc740; &#xac19;&#xc9c0;&#xb9cc; &#xd2b9;&#xc9d5; &#xc778;&#xc2a4;&#xd134;&#xc2a4;&#xc758; &#xc218;&#xac00;<tt>B / g</tt>&#xb429;&#xb2c8;&#xb2e4;. &#xc5ec;&#xae30;&#xc11c;<tt>B</tt>&#xb294; &#xbbf8;&#xb2c8;&#xbc27;&#xcc0c; &#xc778;&#xc2a4;&#xd134;&#xc2a4;&#xc758; &#xc22b;&#xc790;&#xb85c;<tt>g</tt>&#xb294; &#xadf8;&#xb8f9;&#xc758; worker &#xc218; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;. [&#xb2e4;&#xb978; &#xccb4;&#xacc4; (neural-net.html)&#xb97c; &#xc774;&#xc6a9;&#xd55c; &#xb808;&#xc774;&#xc5b4; (&#xc2e0;&#xacbd;&#xb9dd;) &#xd30c;&#xd2f0;&#xc158; &#xbc29;&#xbc95;&#xb3c4; &#xc788;&#xc2b5;&#xb2c8;&#xb2e4;.</p>
+<p>&#xb2e4;&#xb978; &#xc124;&#xc815;&#xc740; &#xbaa8;&#xb450; &#x201c;&#xbcd1;&#xb82c;&#xd654; &#xc5c6;&#xc74c;&#x201d;&#xc758; &#xacbd;&#xc6b0;&#xc640; &#xb3d9;&#xc77c;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;./bin/singa-run.sh -conf examples/cifar10/job.conf</p></div></div>
+<div class="section">
+<h3><a name="a_"></a>&#xd074;&#xb7ec;&#xc2a4;&#xd130;&#xc5d0;&#xc11c;&#xc758; &#xd6c8;&#xb828;</h3>
+<p>&#xd074;&#xb7ec;&#xc2a4;&#xd130; &#xc124;&#xc815;&#xc744; &#xbcc0;&#xacbd;&#xd558;&#xc5ec; &#xc704; &#xd2b8;&#xb808;&#xc774;&#xb2dd; &#xd504;&#xb808;&#xc784; &#xc6cc;&#xd06c;&#xc758; &#xd655;&#xc7a5;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;nworker_per_procs : 1</p>
+<p>&#xbaa8;&#xb4e0; &#xd504;&#xb85c;&#xc138;&#xc2a4;&#xb294; &#xd558;&#xb098;&#xc758; worker &#xc2a4;&#xb808;&#xb4dc;&#xb97c; &#xc0dd;&#xc131;&#xd569;&#xb2c8;&#xb2e4;. &#xacb0;&#xacfc; worker &#xc6b0;&#xb9ac;&#xb294; &#xb2e4;&#xb978; &#xd504;&#xb85c;&#xc138;&#xc2a4; (&#xb178;&#xb4dc;)&#xc5d0;&#xc11c; &#xc0dd;&#xc131;&#xb429;&#xb2c8;&#xb2e4;. &#xd074;&#xb7ec;&#xc2a4;&#xd130;&#xc758; &#xb178;&#xb4dc;&#xb97c; &#xd2b9;&#xc815;&#xd558;&#xb824;&#xba74; <i>SINGA_ROOT/conf/</i> &#xc758; <i>hostfile</i> &#xc758; &#xc124;&#x200b;&#x200b;&#xc815;&#xc774; &#xd544;&#xc694;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>e.g.,</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;logbase-a01 &#xa0;&#xa0;&#xa0;&#xa0;logbase-a02</p>
+<p>zookeeper location&#xb3c4; &#xc124;&#xc815;&#xd574;&#xc57c;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>e.g.,</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;# conf/singa.conf &#xa0;&#xa0;&#xa0;&#xa0;zookeeper_host : &#x201c;logbase-a01&#x201d;</p>
+<p>&#xc2a4;&#xd06c;&#xb9bd;&#xd2b8;&#xc758; &#xc2e4;&#xd589;&#xc740; &#x201c;Single &#xb178;&#xb4dc; &#xd2b8;&#xb808;&#xc774;&#xb2dd;&#x201d;&#xacfc; &#xb3d9;&#xc77c;&#xd569;&#xb2c8;&#xb2e4;.</p>
+<p>&#xa0;&#xa0;&#xa0;&#xa0;./bin/singa-run.sh -conf examples/cifar10/job.conf</p></div></div>
+<div class="section">
+<h2><a name="Mesos_"></a>Mesos&#xc5d0;&#xc11c; &#xc2e4;&#xd589;</h2>
+
+<ul>
+  
+<li>working * &#x2026;</li>
+</ul></div>
+<div class="section">
+<h2><a name="a"></a>&#xb2e4;&#xc74c;</h2>
+<p>SINGA &#xc758; &#xcf54;&#xb4dc; &#xbcc0;&#xacbd; &#xbc0f; &#xcd94;&#xac00;&#xc5d0; &#xb300;&#xd55c; &#xc790;&#xc138;&#xd55c; &#xb0b4;&#xc6a9;&#xc740; <a href="programming-guide.html">&#xd504;&#xb85c;&#xadf8;&#xb798;&#xbc0d; &#xac00;&#xc774;&#xb4dc;</a>&#xb97c; &#xcc38;&#xc870;&#xd558;&#xc2ed;&#xc2dc;&#xc624;.</p></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. Apache Singa, Apache, the Apache feather logo, and the Apache Singa project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/singa/trunk/content/docs/kr/rbm.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/kr/rbm.html (added)
+++ websites/staging/singa/trunk/content/docs/kr/rbm.html Wed Jan 13 03:47:56 2016
@@ -0,0 +1,641 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-01-13 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160113" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; RBM Example</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa">
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
+        src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../docs/overview.html"  title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../../docs/quick-start.html"  title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../../downloads.html"  title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../../docs/index.html"  title="Latest">Latest</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../docs/installation.html"  title="Installation">Installation</a>
+</li>
+                                  <li>      <a href="../../docs/programmer-guide.html"  title="Programmer Guide">Programmer Guide</a>
+</li>
+                                  <li>      <a href="../../docs/distributed-training.html"  title="Distributed Training">Distributed Training</a>
+</li>
+                                  <li>      <a href="../../docs/data.html"  title="Data Preparation">Data Preparation</a>
+</li>
+                                  <li>      <a href="../../docs/checkpoint.html"  title="Checkpoint">Checkpoint</a>
+</li>
+                                  <li>      <a href="../../docs/test.html"  title="Test">Test</a>
+</li>
+                                  <li>      <a href="../../docs/examples.html"  title="Examples">Examples</a>
+</li>
+                                  <li>      <a href="../../docs/debug.html"  title="Debug">Debug</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../../v0.1.0/index.html"  title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../develop/schedule.html"  title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="../../develop/how-contribute.html"  title="How to Contribute">How to Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a href="../../develop/contribute-docs.html"  title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../community/source-repository.html"  title="Source Repository">Source Repository</a>
+</li>
+                  
+                      <li>      <a href="../../community/mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../../community/issue-tracking.html"  title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../../community/team-list.html"  title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/"  title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/"  title="NUS Site">NUS Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../../index.html" id="bannerLeft" title="Apache SINGA">
+                                                                                                <img src="../../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                                                <img src="../../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">RBM Example</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../../docs/overview.html" title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../docs/quick-start.html" title="Quick Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
+      <li>
+  
+                          <a href="../../docs/index.html" title="Latest">
+          <span class="icon-chevron-right"></span>
+        Latest</a>
+                  </li>
+                
+      <li>
+  
+                          <a href="../../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../../develop/schedule.html" title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                                    
+      <li>
+  
+                          <a href="../../develop/how-contribute.html" title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../../community/source-repository.html" title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/mail-lists.html" title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/issue-tracking.html" title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/team-list.html" title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/" class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/" class="externalLink" title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                                                                   <a href="http://incubator.apache.org" title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" src="http://incubator.apache.org/images/egg-logo.png"    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>RBM Example</h1>
+<hr />
+<p>This example uses SINGA to train 4 RBM models and one auto-encoder model over the <a class="externalLink" href="http://yann.lecun.com/exdb/mnist/">MNIST dataset</a>. The auto-encoder model is trained to reduce the dimensionality of the MNIST image feature. The RBM models are trained to initialize parameters of the auto-encoder model. This example application is from <a class="externalLink" href="http://www.cs.toronto.edu/~hinton/science.pdf">Hinton&#x2019;s science paper</a>.</p>
+<div class="section">
+<h2><a name="Running_instructions"></a>Running instructions</h2>
+<p>Running scripts are provided in <i>SINGA_ROOT/examples/rbm</i> folder.</p>
+<p>The MNIST dataset has 70,000 handwritten digit images. The <a href="data.html">data preparation</a> page has details on converting this dataset into SINGA recognizable format. Users can simply run the following commands to download and convert the dataset.</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint"># at SINGA_ROOT/examples/mnist/
+$ cp Makefile.example Makefile
+$ make download
+$ make create
+</pre></div></div>
+<p>The training is separated into two phases, namely pre-training and fine-tuning. The pre-training phase trains 4 RBMs in sequence,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint"># at SINGA_ROOT/
+$ ./bin/singa-run.sh -conf examples/rbm/rbm1.conf
+$ ./bin/singa-run.sh -conf examples/rbm/rbm2.conf
+$ ./bin/singa-run.sh -conf examples/rbm/rbm3.conf
+$ ./bin/singa-run.sh -conf examples/rbm/rbm4.conf
+</pre></div></div>
+<p>The fine-tuning phase trains the auto-encoder by,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">$ ./bin/singa-run.sh -conf examples/rbm/autoencoder.conf
+</pre></div></div></div>
+<div class="section">
+<h2><a name="Training_details"></a>Training details</h2>
+<div class="section">
+<h3><a name="RBM1"></a>RBM1</h3>
+<p><img src="../images/example-rbm1.png" align="center" width="200px" alt="" /> <span><b>Figure 1 - RBM1.</b></span></p>
+<p>The neural net structure for training RBM1 is shown in Figure 1. The data layer and parser layer provides features for training RBM1. The visible layer (connected with parser layer) of RBM1 accepts the image feature (784 dimension). The hidden layer is set to have 1000 neurons (units). These two layers are configured as,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">layer{
+  name: &quot;RBMVis&quot;
+  type: kRBMVis
+  srclayers:&quot;mnist&quot;
+  srclayers:&quot;RBMHid&quot;
+  rbm_conf{
+    hdim: 1000
+  }
+  param{
+    name: &quot;w1&quot;
+    init{
+      type: kGaussian
+      mean: 0.0
+      std: 0.1
+    }
+  }
+  param{
+    name: &quot;b11&quot;
+    init{
+      type: kConstant
+      value: 0.0
+    }
+  }
+}
+
+layer{
+  name: &quot;RBMHid&quot;
+  type: kRBMHid
+  srclayers:&quot;RBMVis&quot;
+  rbm_conf{
+    hdim: 1000
+  }
+  param{
+    name: &quot;w1_&quot;
+    share_from: &quot;w1&quot;
+  }
+  param{
+    name: &quot;b12&quot;
+    init{
+      type: kConstant
+      value: 0.0
+    }
+  }
+}
+</pre></div></div>
+<p>For RBM, the weight matrix is shared by the visible and hidden layers. For instance, <tt>w1</tt> is shared by <tt>vis</tt> and <tt>hid</tt> layers shown in Figure 1. In SINGA, we can configure the <tt>share_from</tt> field to enable <a href="param.html">parameter sharing</a> as shown above for the param <tt>w1</tt> and <tt>w1_</tt>.</p>
+<p><a href="train-one-batch.html#contrastive-divergence">Contrastive Divergence</a> is configured as the algorithm for <a href="train-one-batch.html">TrainOneBatch</a>. Following Hinton&#x2019;s paper, we configure the <a href="updater.html">updating protocol</a> as follows,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint"># Updater Configuration
+updater{
+  type: kSGD
+  momentum: 0.2
+  weight_decay: 0.0002
+  learning_rate{
+    base_lr: 0.1
+    type: kFixed
+  }
+}
+</pre></div></div>
+<p>Since the parameters of RBM0 will be used to initialize the auto-encoder, we should configure the <tt>workspace</tt> field to specify a path for the checkpoint folder. For example, if we configure it as,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">cluster {
+  workspace: &quot;examples/rbm/rbm1/&quot;
+}
+</pre></div></div>
+<p>Then SINGA will <a href="checkpoint.html">checkpoint the parameters</a> into <i>examples/rbm/rbm1/</i>.</p></div>
+<div class="section">
+<h3><a name="RBM1"></a>RBM1</h3>
+<p><img src="../images/example-rbm2.png" align="center" width="200px" alt="" /> <span><b>Figure 2 - RBM2.</b></span></p>
+<p>Figure 2 shows the net structure of training RBM2. The visible units of RBM2 accept the output from the Sigmoid1 layer. The Inner1 layer is a <tt>InnerProductLayer</tt> whose parameters are set to the <tt>w1</tt> and <tt>b12</tt> learned from RBM1. The neural net configuration is (with layers for data layer and parser layer omitted).</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">layer{
+  name: &quot;Inner1&quot;
+  type: kInnerProduct
+  srclayers:&quot;mnist&quot;
+  innerproduct_conf{
+    num_output: 1000
+  }
+  param{ name: &quot;w1&quot; }
+  param{ name: &quot;b12&quot;}
+}
+
+layer{
+  name: &quot;Sigmoid1&quot;
+  type: kSigmoid
+  srclayers:&quot;Inner1&quot;
+}
+
+layer{
+  name: &quot;RBMVis&quot;
+  type: kRBMVis
+  srclayers:&quot;Sigmoid1&quot;
+  srclayers:&quot;RBMHid&quot;
+  rbm_conf{
+    hdim: 500
+  }
+  param{
+    name: &quot;w2&quot;
+    ...
+  }
+  param{
+    name: &quot;b21&quot;
+    ...
+  }
+}
+
+layer{
+  name: &quot;RBMHid&quot;
+  type: kRBMHid
+  srclayers:&quot;RBMVis&quot;
+  rbm_conf{
+    hdim: 500
+  }
+  param{
+    name: &quot;w2_&quot;
+    share_from: &quot;w2&quot;
+  }
+  param{
+    name: &quot;b22&quot;
+    ...
+  }
+}
+</pre></div></div>
+<p>To load w0 and b02 from RBM0&#x2019;s checkpoint file, we configure the <tt>checkpoint_path</tt> as,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">checkpoint_path: &quot;examples/rbm/rbm1/checkpoint/step6000-worker0&quot;
+cluster{
+  workspace: &quot;examples/rbm/rbm2&quot;
+}
+</pre></div></div>
+<p>The workspace is changed for checkpointing <tt>w2</tt>, <tt>b21</tt> and <tt>b22</tt> into <i>examples/rbm/rbm2/</i>.</p></div>
+<div class="section">
+<h3><a name="RBM3"></a>RBM3</h3>
+<p><img src="../images/example-rbm3.png" align="center" width="200px" alt="" /> <span><b>Figure 3 - RBM3.</b></span></p>
+<p>Figure 3 shows the net structure of training RBM3. In this model, a layer with 250 units is added as the hidden layer of RBM3. The visible units of RBM3 accepts output from Sigmoid2 layer. Parameters of Inner1 and Innner2 are set to <tt>w1,b12,w2,b22</tt> which can be load from the checkpoint file of RBM2, i.e., &#x201c;examples/rbm/rbm2/&#x201d;.</p></div>
+<div class="section">
+<h3><a name="RBM4"></a>RBM4</h3>
+<p><img src="../images/example-rbm4.png" align="center" width="200px" alt="" /> <span><b>Figure 4 - RBM4.</b></span></p>
+<p>Figure 4 shows the net structure of training RBM4. It is similar to Figure 3, but according to <a class="externalLink" href="http://www.cs.toronto.edu/~hinton/science.pdf">Hinton&#x2019;s science paper</a>, the hidden units of the top RBM (RBM4) have stochastic real-valued states drawn from a unit variance Gaussian whose mean is determined by the input from the RBM&#x2019;s logistic visible units. So we add a <tt>gaussian</tt> field in the RBMHid layer to control the sampling distribution (Gaussian or Bernoulli). In addition, this RBM has a much smaller learning rate (0.001). The neural net configuration for the RBM4 and the updating protocol is (with layers for data layer and parser layer omitted),</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint"># Updater Configuration
+updater{
+  type: kSGD
+  momentum: 0.9
+  weight_decay: 0.0002
+  learning_rate{
+    base_lr: 0.001
+    type: kFixed
+  }
+}
+
+layer{
+  name: &quot;RBMVis&quot;
+  type: kRBMVis
+  srclayers:&quot;Sigmoid3&quot;
+  srclayers:&quot;RBMHid&quot;
+  rbm_conf{
+    hdim: 30
+  }
+  param{
+    name: &quot;w4&quot;
+    ...
+  }
+  param{
+    name: &quot;b41&quot;
+    ...
+  }
+}
+
+layer{
+  name: &quot;RBMHid&quot;
+  type: kRBMHid
+  srclayers:&quot;RBMVis&quot;
+  rbm_conf{
+    hdim: 30
+    gaussian: true
+  }
+  param{
+    name: &quot;w4_&quot;
+    share_from: &quot;w4&quot;
+  }
+  param{
+    name: &quot;b42&quot;
+    ...
+  }
+}
+</pre></div></div></div>
+<div class="section">
+<h3><a name="Auto-encoder"></a>Auto-encoder</h3>
+<p>In the fine-tuning stage, the 4 RBMs are &#x201c;unfolded&#x201d; to form encoder and decoder networks that are initialized using the parameters from the previous 4 RBMs.</p>
+<p><img src="../images/example-autoencoder.png" align="center" width="500px" alt="" /> <span><b>Figure 5 - Auto-Encoders.</b></span></p>
+<p>Figure 5 shows the neural net structure for training the auto-encoder. <a href="train-one-batch.html">Back propagation (kBP)</a> is configured as the algorithm for <tt>TrainOneBatch</tt>. We use the same cluster configuration as RBM models. For updater, we use <a href="updater.html#adagradupdater">AdaGrad</a> algorithm with fixed learning rate.</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">### Updater Configuration
+updater{
+  type: kAdaGrad
+  learning_rate{
+  base_lr: 0.01
+  type: kFixed
+  }
+}
+</pre></div></div>
+<p>According to <a class="externalLink" href="http://www.cs.toronto.edu/~hinton/science.pdf">Hinton&#x2019;s science paper</a>, we configure a EuclideanLoss layer to compute the reconstruction error. The neural net configuration is (with some of the middle layers omitted),</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">layer{ name: &quot;data&quot; }
+layer{ name:&quot;mnist&quot; }
+layer{
+  name: &quot;Inner1&quot;
+  param{ name: &quot;w1&quot; }
+  param{ name: &quot;b12&quot; }
+}
+layer{ name: &quot;Sigmoid1&quot; }
+...
+layer{
+  name: &quot;Inner8&quot;
+  innerproduct_conf{
+    num_output: 784
+    transpose: true
+  }
+  param{
+    name: &quot;w8&quot;
+    share_from: &quot;w1&quot;
+  }
+  param{ name: &quot;b11&quot; }
+}
+layer{ name: &quot;Sigmoid8&quot; }
+
+# Euclidean Loss Layer Configuration
+layer{
+  name: &quot;loss&quot;
+  type:kEuclideanLoss
+  srclayers:&quot;Sigmoid8&quot;
+  srclayers:&quot;mnist&quot;
+}
+</pre></div></div>
+<p>To load pre-trained parameters from the 4 RBMs&#x2019; checkpoint file we configure <tt>checkpoint_path</tt> as</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">### Checkpoint Configuration
+checkpoint_path: &quot;examples/rbm/checkpoint/rbm1/checkpoint/step6000-worker0&quot;
+checkpoint_path: &quot;examples/rbm/checkpoint/rbm2/checkpoint/step6000-worker0&quot;
+checkpoint_path: &quot;examples/rbm/checkpoint/rbm3/checkpoint/step6000-worker0&quot;
+checkpoint_path: &quot;examples/rbm/checkpoint/rbm4/checkpoint/step6000-worker0&quot;
+</pre></div></div></div></div>
+<div class="section">
+<h2><a name="Visualization_Results"></a>Visualization Results</h2>
+
+<div>
+<img src="../images/rbm-weight.PNG" align="center" width="300px" alt="" />
+
+<img src="../images/rbm-feature.PNG" align="center" width="300px" alt="" />
+<br />
+<span><b>Figure 6 - Bottom RBM weight matrix.</b></span>
+&#160;
+&#160;
+&#160;
+&#160;
+
+<span><b>Figure 7 - Top layer features.</b></span>
+</div>
+<p>Figure 6 visualizes sample columns of the weight matrix of RBM1, We can see the Gabor-like filters are learned. Figure 7 depicts the features extracted from the top-layer of the auto-encoder, wherein one point represents one image. Different colors represent different digits. We can see that most images are well clustered according to the ground truth.</p></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. Apache Singa, Apache, the Apache feather logo, and the Apache Singa project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>