Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] onehot_encode not works #33

Open
miangoar opened this issue Jan 3, 2023 · 1 comment
Open

[Error] onehot_encode not works #33

miangoar opened this issue Jan 3, 2023 · 1 comment

Comments

@miangoar
Copy link

miangoar commented Jan 3, 2023

Hi Thomas!!!

Thank you so much for ProtLearn, is very useful. I installed it on google Colab (and local on my PC) using:

pip install protlearn
pip install --upgrade protlearn

And then tried to apply one hot encoding as the example provided in the documentation:

from protlearn.preprocessing import onehot_encode
seqs = ['ARKLY', 'EERNPAA', 'QEPGPGLLLK']
enc = onehot_encode(seqs, padding=True)
enc.shape

But the next error appears:

TypeError Traceback (most recent call last)
in
1 from protlearn.preprocessing import onehot_encode
2 seqs = ['ARKLY', 'EERNPAA', 'QEPGPGLLLK']
----> 3 enc = onehot_encode(seqs, padding=True)
4 enc.shape

TypeError: 'module' object is not callable

I tried to solve it on my local PC adding a "onehot_encode" in the init file (protlearn/protlearn/preprocessing/init.py), but not works for me. Do you have any suggestion of wot to deal with it?

Thanks for you attetnion :)

@Shinku-AI
Copy link

Shinku-AI commented Jul 11, 2024

from protlearn.preprocessing.onehot_encode import onehot_encode

Also, there is no padding parameter

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

No branches or pull requests

2 participants