Representation and generalization properties of class-entropy networks