Closed psorianom closed 11 months ago
Hello!
This can definitely be addressed, I'll have a look at it shortly. In the meantime, you can pass those kwargs directly to your metric function :)
Thank you for your quick reply.
Sorry, I was not clear, I am available to do this quick modification if needed :) Cheers,
No need, I would like to include it in a large v1.0.0-pre
branch that should be merged soon, rather than in main
. As a result, it will be a bit easier if I take care of it :)
Perfect. Thanks !
Hi !
First of all, thank you for this setfit implementation 😃
I want to pass the
dict
of metric argumentsmetric_kwargs
to mymetric
callable but currently it is not possible:metric_kwargs
is only passed to theevaluate
package metrics:https://github.com/huggingface/setfit/blob/cbc01ec402e86ca04e5e40e9bce7f618f3c2946c/src/setfit/trainer.py#L453C47-L453C47
The fix seems easy. Would it be something interesting to address ? Thank you !