title: Learning how to map numeric values into an array
body: <p>Deal all,</p>
  
  <p>I am looking for an appropriate algorithm which can allow me to learn how some numeric values are mapped into an array.</p>
  
  <p>Try to imagine that I have a training data set like this:</p>
  
  <pre><code>1 1 2 4 5 --&gt; [0 1 5 7 8 7 1 2 3 7]
  2 3 2 4 1 --&gt; [9 9 5 6 6 6 2 4 3 5]
  ...
  1 2 1 8 9 --&gt; [1 4 5 8 7 4 1 2 3 4]
  </code></pre>
  
  <p>So that given a new set of numeric values, I would like to predict this new array</p>
  
  <pre><code>5 8 7 4 2 --&gt; [? ? ? ? ? ? ? ? ? ?]
  </code></pre>
  
  <p>Thank you very much in advance.</p>
  
  <p>Best regards!</p>
  
  <hr>
  
  <p>Some considerations:</p>
  
  <ul>
  <li>Let us suppose that all numbers are integer and the length of the arrays is fixed</li>
  <li>Quality of each predicted array can be determine by means of a distance function which try to measure the likeness between the ideal and the predicted array.</li>
  </ul>