Closed J-Fo-S closed 1 week ago
@J-Fo-S Thanks for reporting.
This is due to a legacy api. Updating the code to
def prepare_eval(
self, sample: Example, y_pred: adal.GeneratorOutput
) -> float:
y_label = -1
if y_pred is not None and y_pred.data is not None:
y_label = y_pred.data
return self.eval_fn, {"y": y_label, "y_gt": sample.answer}
Will work fine. I will create a pr to update the notebook
close
Describe the bug Training fails on a TypeError: cannot unpack non-iterable float object. See below for details. Occurs in both local and hosted runtimes.
To Reproduce Steps to reproduce the behavior:
Screenshots
**Desktop (please complete the following information):** - OS: Windows - Colab runtime: local connection **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.