英文

使用AutoNLP训练的模型

  • 问题类型:多分类
  • 模型ID:37229289
  • 二氧化碳排放量(以克为单位):5.448567309047846

验证指标

  • 损失:0.07081354409456253
  • 准确率:0.9867109634551495
  • 宏F1值:0.9859067529980614
  • 微F1值:0.9867109634551495
  • 加权F1值:0.9866417220968429
  • 宏精确度:0.9868771404595043
  • 微精确度:0.9867109634551495
  • 加权精确度:0.9869289511551576
  • 宏召回率:0.9853173241852486
  • 微召回率:0.9867109634551495
  • 加权召回率:0.9867109634551495

用法

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

$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/abhishek/autonlp-bbc-news-classification-37229289

或者使用Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("abhishek/autonlp-bbc-news-classification-37229289", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("abhishek/autonlp-bbc-news-classification-37229289", use_auth_token=True)

inputs = tokenizer("I love AutoNLP", return_tensors="pt")

outputs = model(**inputs)