title: Which loss function should I use in my LSTM and why?
body: <p>I try to understand Keras and LSTMs step by step. Right now I build an LSTM there the input is a sentence and the output is an array of five values which can each be 0 or 1.</p>
  
  <p>Example:
  Input sentence: 'I hate cookies'
  Output example: [0,0,1,0,1]</p>
  
  <p>For this, I am using keras library.</p>
  
  <p>Now I am not sure which loss function I should use. Right now I just know two predefined loss functions a little bit better and both seem not to be good for my example:</p>
  
  <p>Binary cross entropy: Good if I have a output of just 0 or 1
  Categorical cross entropy: Good if I have an output of an array with one 1 and all other values being 0.</p>
  
  <p>Both functions would not make any sense for my example. What would you use and why?</p>
  
  <h1>Edit</h1>
  
  <p>Another Question: Which Activation function would you use in Keras?</p>