Create custom NotebookCallback subclass for embedding_loss, etc.
Details
As seen in #548, training and validation losses aren't properly logged in Notebooks. This is because the NotebookCallback expects "loss" and "eval_loss", whereas SetFit uses different keys instead (e.g. "embedding_loss").
This PR adds a modification of the NotebookCallback that is aware of the different (common) options in SetFit.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
Resolves #548
Hello!
Pull Request overview
Details
As seen in #548, training and validation losses aren't properly logged in Notebooks. This is because the NotebookCallback expects "loss" and "eval_loss", whereas SetFit uses different keys instead (e.g. "embedding_loss").
This PR adds a modification of the NotebookCallback that is aware of the different (common) options in SetFit.