Thanks for your effort, maybe we can merge it into milk when it's done. Would
you be OK with that (ie., licensing it under MIT license)?
> My question is, what is the interpretation of the return value of the
> model's apply()? If I am understanding the code correctly, a model is
> the trained result but I'm having trouble reconciling the multiple
> label result. Do I create a separate neural network model for each
> distinct label? If so, where would I place that code?
Well, it really depends on what your model is doing.
If your NN is binary, then it should return a boolean, but if it's inherently
multi-label, then it should return the label (as 0..(N-1)).
If I am reading pybrains docs correctly, your apply would look something like:
class nn_model(...):
...
def apply(self, q):
v = self.nn.activate(q)
return np.argmax(v)
HTH,
--
Luis Pedro Coelho | Institute for Molecular Medicine | http://luispedro.org