keras-text icon indicating copy to clipboard operation
keras-text copied to clipboard

LabelBinarizer output should not be flattened

Open MrMathias opened this issue 7 years ago • 0 comments

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] ]

MrMathias avatar Dec 05 '17 15:12 MrMathias