We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 to TransformerBasedClassification.fit() results in AttributeError: 'str' object has no attribute 'step'.
TransformerBasedClassification.fit()
AttributeError: 'str' object has no attribute 'step'
clf.fit(dataset, optimizer=optimizer, scheduler=scheduler)
where clf is an instance of TransformerBasedClassification and optimizer and scheduler are not None.
TransformerBasedClassification
The given optimizer and scheduler should be used.
small-text version: 1.0.0 small-text integrations (e.g., transformers): transformers
The error is here
The text was updated successfully, but these errors were encountered:
Fix scheduler keyword not being processed correctly (#16)
2a1a8f5
Signed-off-by: Christopher Schröder <chschroeder@users.noreply.github.com>
chschroeder
No branches or pull requests
Bug description
Passing a scheduler to
TransformerBasedClassification.fit()
results inAttributeError: 'str' object has no attribute 'step'
.Steps to reproduce
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
The text was updated successfully, but these errors were encountered: