ck37/coral-ordinal

MeanAbsoluteErrorLabels metric causes TypeError Exception

felixvor opened this issue · 3 comments

When compiling the model with:

model.compile(loss = coral.OrdinalCrossEntropy(num_classes = num_labels),
                metrics = [coral.MeanAbsoluteErrorLabels()],
                optimizer=opt)

it causes the following exception:

TypeError: MeanAbsoluteErrorLabels() missing 2 required positional arguments: 'y_true' and 'y_pred'

Is there a workaround / easy fix for this?

Have you successfully run the linked notebook from README end to end? I don't have any issues with using the metric as documented.

@DieseKartoffel Have you encountered this error again? If yes, can you share a reproducible end to end (toy) example? I can't reproduce this error either locally in notebook or in unit tests: https://github.com/ck37/coral-ordinal/blob/master/coral_ordinal/tests/test_metrics.py

Will close this for now since not reproducible locally or in unit test. @DieseKartoffel Reopen if this is still an issue for you on latest dev branch.