1 min readOct 6, 2018
In your case, If class_mode=”other”, the “Target” values will be taken as target values but the datatype of the “Target” column should be numpy array of floats. if it was treated by pandas as strings, then you will face errors, I would suggest to split the “Target” column to individual columns with each containing respective value in the array and set y_col to [“target1”,”target2"…….].