Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

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

Open
henrique-voni opened this issue Sep 15, 2020 · 0 comments
Open

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

henrique-voni opened this issue Sep 15, 2020 · 0 comments

Comments

@henrique-voni
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant