Closed ramji-c closed 3 years ago
See #49
In your case, if you print(test_data.labels)
, this is what you get:
[['1', '2', '3'], ['1', '2', '3'], ['1', '2', '3']]
Which is why the expectation fails. As noted in #49, what you want to do here is something like this:
test_data = editor.template("example{idx}",
idx=["1", "2", "3"],
meta=True)
test_suite = MFT(**test_data, labels=['1', '2', '3'], capability="Vocabulary")
test_suite.run(PredictorWrapper.wrap_predict(dummy_predict))
test_suite.summary()
Ah! I read #49 before but it still turned out to be a gotcha. thanks for the quick clarification!
I am trying to create a MFT with a different label for each example. I use a list of strings for the
labels
argument, and when I run the test case, I get a 100% failure even if the predictions are correct. If I set a single string inlabels
and re-run the test, valid predictions are no longer marked as failed. Is this a bug? What is recommended way to use a list of labels.Minimal reproducible code