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

AttributeError: 'MultiLabelZeroShotGPTClassifier' object has no attribute 'key' #100

Closed
hasanhuz opened this issue Jun 6, 2024 · 1 comment

Comments

@hasanhuz
Copy link

hasanhuz commented Jun 6, 2024

Hi

I got this error "AttributeError: 'MultiLabelZeroShotGPTClassifier' object has no attribute 'key'" while using below code:

from skllm import MultiLabelZeroShotGPTClassifier
from skllm.datasets import get_multilabel_classification_dataset

X, y = get_multilabel_classification_dataset()

clf = MultiLabelZeroShotGPTClassifier(max_labels=3)
clf.fit(X, y)
labels = clf.predict(X)

Thanks,

@OKUA1
Copy link
Collaborator

OKUA1 commented Jun 6, 2024

Hi @hasanhuz.

I believe this problem is the same as #93, hence I am going to close this issue to track it in one place.

I assume you are using a jupyter notebook. As a short term fix, you can add anything after the last line (e.g. print("done")).

@OKUA1 OKUA1 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
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