Closed hguidara closed 3 years ago
@hguidara Thanks for catching this. As a workaround, you can return a dict for metrics_to_log. It would be even better if you could make a PR and handle the case when metrics_to_log is not a dict in _eval_estimator() of ml.py.
I tried using a custom metric function as argument to AutoML.fit but it raises errors. I made sure to follow the required function signature as mentionned in the documentation :
This is the code I am using :
As you can see, the _custom_metricfoo function I am using is very basic for testing purpose.
And this is the error I get:
N.B: When I set the "metric" argument to any predefined metric everything goes well. (Example "metric" = "accuracy")