Python-ELM icon indicating copy to clipboard operation
Python-ELM copied to clipboard

ValueError: output_type='binary' , but y.shape = (30, 3)

Open henrique-voni opened this issue 5 years ago • 0 comments

Hello,

I'm using your implementation of ELMClassifier to run some experiments. I see it was implemented following sklearn coding interface, so i was trying to run your algorithm through a dataset and measure its performance with cross_val_score(), but i am getting this error:

ValueError: output_type='binary', but y.shape = (30, 3)

It has something to do with line 614, where you set:

   class_predictions = self.binarizer.inverse_transform(raw_predictions)

Do you have any clue how can i fix this problem? I am using Iris dataset (3 classes). Please let me know if i can help or even push a pull request for this.

Thanks in advance.

henrique-voni avatar Sep 15 '20 00:09 henrique-voni