英文

BERT-Banking77模型使用AutoTrain进行训练

  • 问题类型:多类分类
  • 模型ID:940131041
  • CO2排放量(以克为单位):0.03330651014155927

验证指标

  • 损失:0.3505457043647766
  • 准确率:0.9263261296660118
  • 宏平均F1分数:0.9268371013605569
  • 微平均F1分数:0.9263261296660118
  • 加权F1分数:0.9259954221865809
  • 宏平均精确率:0.9305746406646502
  • 微平均精确率:0.9263261296660118
  • 加权精确率:0.929031563971418
  • 宏平均召回率:0.9263724620088746
  • 微平均召回率:0.9263261296660118
  • 加权召回率:0.9263261296660118

使用方法

您可以使用cURL访问此模型:

$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/philschmid/autotrain-does-it-work-940131041

或使用Python API:

from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_id = 'philschmid/BERT-Banking77'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model)
classifier('What is the base of the exchange rates?')