英文

用AutoTrain训练的模型

  • 问题类型:多类别分类
  • 模型编号:762923432
  • 二氧化碳排放量(以克为单位):0.015536746909294205

验证指标

  • 损失:0.49825894832611084
  • 准确率:0.7962895598399418
  • Macro F1:0.7997458031044901
  • Micro F1:0.7962895598399418
  • 加权 F1:0.796365325858282
  • Macro 精确度:0.7995724418486833
  • Micro 精确度:0.7962895598399418
  • 加权精确度:0.7965384250324863
  • Macro 召回率:0.8000290112564951
  • Micro 召回率:0.7962895598399418
  • 加权召回率:0.7962895598399418

用法

您可以使用 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/Souvikcmsa/autotrain-sentiment_analysis-762923432

或者使用 Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("Souvikcmsa/autotrain-sentiment_analysis-762923432", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("Souvikcmsa/autotrain-sentiment_analysis-762923432", use_auth_token=True)

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

outputs = model(**inputs)