title: How can I control the number of non zero weights during training in Keras?
body: <p>How can I control the number of non zero weights during optimization and training, such that we have a fixed number <code>N</code> of non-zero weights? Something like orthogonal matching pursuit. This could be done by adding the constraint to cost function.</p>