Hey Matthieu, > On Jan 20, 2015, at 1:47 AM, Matthieu Morel <[email protected]> wrote: > > I'm confused. From what I see the number of classes is currently fixed > in the instance header. As if it was static. I suppose you can work > around that limitation with some hacks but I want to use a clean API > for that. > > Or is there a recommended way I'm missing?
Ah, I think I remember now what happened. As far as I encountered this situation, the data had say an .arff format with a header stating the number of class values, and the instance header was read from that, while the instances were then read by the line. I worked around that by just storing the class label seen in the instances on the fly when building a model, and ignored that field of the instance header. Sorry for the confusion! Cheers, Olivier
