However, these models are often trained by optimizing performance measures (such as conditional log-likelihood or error rate) that are not directly related to the task-specific non-linear performance measure, e.g., the F 1 -score.
better models may be trained by optimizing the taskspecific performance measure while allowing latent variables to adapt their values accordingly.