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

Passing a scheduler through fit results in AttributeError #16

Closed
chschroeder opened this issue Jul 10, 2022 · 0 comments
Closed

Passing a scheduler through fit results in AttributeError #16

chschroeder opened this issue Jul 10, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chschroeder
Copy link
Contributor

Bug description

Passing a scheduler to TransformerBasedClassification.fit() results in AttributeError: 'str' object has no attribute 'step'.

Steps to reproduce

clf.fit(dataset, optimizer=optimizer, scheduler=scheduler)

where clf is an instance of TransformerBasedClassification and optimizer and scheduler are not None.

Expected behavior

The given optimizer and scheduler should be used.

Environment:

small-text version: 1.0.0
small-text integrations (e.g., transformers): transformers

Addition information

The error is here

@chschroeder chschroeder added the bug Something isn't working label Jul 10, 2022
chschroeder added a commit that referenced this issue Jul 10, 2022
Signed-off-by: Christopher Schröder <chschroeder@users.noreply.github.com>
@chschroeder chschroeder added this to the small-text-1.1.0 milestone Jul 10, 2022
@chschroeder chschroeder self-assigned this Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant