title: CNTK C# LSTM Examples
body: <p>Where can I find well-documented samples of LSTM models using CNTK C# (many-to-many, many-to-one, regression, classification)? Do they exist?</p>
  
  <p>I have been trying to use CNTK in C# for about 4 months now, and it has been very hard to find good documentation in C#. So far, I have found these:</p>
  
  <ol>
  <li>CNTK C# sequence classifier (Github)
  <a href="https://github.com/Microsoft/CNTK/tree/master/Examples/TrainingCSharp/Common" rel="nofollow noreferrer">https://github.com/Microsoft/CNTK/tree/master/Examples/TrainingCSharp/Common</a></li>
  </ol>
  
  <p>Very hard to follow. Some of the nomenclature can be found at the (excellent) post: <a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/" rel="nofollow noreferrer">http://colah.github.io/posts/2015-08-Understanding-LSTMs/</a></p>
  
  <p>But some parameters are confusing. What is LSTMDim, which becomes outputShape in function LSTMPComponentWithSelfStabilization? It seems that it is the length of the hidden state and not the output of the entire net. cellDim appears to be the dimension of the memory state. What exactly does CNTKLib.SequenceLast do?</p>
  
  <ol start="2">
  <li>Sine wave predictor
  <a href="https://bhrnjica.net/2017/12/07/cntk-106-tutorial-time-series-prediction-with-lstm-using-c/" rel="nofollow noreferrer">https://bhrnjica.net/2017/12/07/cntk-106-tutorial-time-series-prediction-with-lstm-using-c/</a></li>
  </ol>
  
  <p>This example uses the LSTM Helper from the Github and is a port from the Python version. It uses cellDim = inDim = 5 in button1_Click event. I changed inDim to 15 and 10 to try some new configurations and got many errors in the process.</p>