IMDB sentiment fine tuning demo, TF accuracy error
Hello! I’m attempting to run through the sentiment analysis demo here:(How to fine-tune a model for common downstream tasks) and to fine tune it with TF. What is the most efficient method to get accuracy and other metrics reported when I run model.compile, and model.fit. I’m getting errors when I attempt to add metrics. Thank you all for your time and expertise! I’m new to HF.
2022-02-17T01:37:38Z
Hello!If passingmetrics=["accuracy"], for example, doesn’t work, you can try using aKerasMetricCallbackand pass it as a callback tomodel.fit()(Keras callbacks).
2022-02-17T02:51:26Z
Thanks for the suggestions!