Thank you very much for very interesting code. @fyu Can you give me some advice about how to reduce number of class for this model?