title: Keras model.compile: metrics to be evaluated by the model
body: <p>I am following some Keras tutorials and I understand the model.compile method creates a model and takes the 'metrics' parameter to define what metrics are used for evaluation during training and testing. </p>
  
  <pre><code>compile(self, optimizer, loss, metrics=[], sample_weight_mode=None)
  </code></pre>
  
  <p>The tutorials I follow typically use "metrics=['accuracy']". I would like to use other metrics such as fmeasure, and reading <a href="https://keras.io/metrics/" rel="noreferrer">https://keras.io/metrics/</a> I know there is a wide range of options. but I do not know how to pass them to the compile method?</p>
  
  <p>For example:</p>
  
  <pre><code>model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['fmeasure'])
  </code></pre>
  
  <p>will generate an error saying that there is no such metric.</p>
  
  <p>Any suggestions highly appreciated</p>
  
  <p>Thanks</p>