keras-text
keras-text copied to clipboard
LabelBinarizer output should not be flattened
current: input_y = [1, 2, 3, 1] self.y result to: [1 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 ]
changed to: self.y result to: [[1 0 0 0], [0 1 0 0], [0 0 1 0], [1 0 0 0] ]