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
In the debug of train.py. I met a problem, that is when I run
top3 = TopKAccuracy(k=3) top5 = TopKAccuracy(k=5) metrics = ["acc", top3, top5] it comes from class TopKAccuracy(EpochMetric): def init(self, k: int): super(TopKAccuracy, self).init() self.k = k self.acc = None self.name = "top_{}_accuracy".format(self.k) self.register_buffer("_accuracy", None) .... but it output TypeError: Can't instantiate abstract class TopKAccuracy with abstract methods reset
The text was updated successfully, but these errors were encountered:
Fixed #2
Sorry, something went wrong.
Thanks a lot! I have also solved the problem by comment the @AbstractMethod
No branches or pull requests
In the debug of train.py. I met a problem, that is when I run
Metrics
top3 = TopKAccuracy(k=3)
top5 = TopKAccuracy(k=5)
metrics = ["acc", top3, top5]
it comes from
class TopKAccuracy(EpochMetric):
def init(self, k: int):
super(TopKAccuracy, self).init()
self.k = k
self.acc = None
self.name = "top_{}_accuracy".format(self.k)
self.register_buffer("_accuracy", None)
....
but it output TypeError: Can't instantiate abstract class TopKAccuracy with abstract methods reset
The text was updated successfully, but these errors were encountered: