--- tags: - autotrain - text-classification language: - en widget: - text: "I love AutoTrain 🤗" datasets: - neuralspace/autotrain-data-ecomm1.8 co2_eq_emissions: emissions: 0.034797737604122594 --- # Model Trained Using AutoTrain - Problem type: Multi-class Classification - Model ID: 1360552485 - CO2 Emissions (in grams): 0.0348 ## Validation Metrics - Loss: 0.539 - Accuracy: 0.914 - Macro F1: 0.903 - Micro F1: 0.914 - Weighted F1: 0.907 - Macro Precision: 0.927 - Micro Precision: 0.914 - Weighted Precision: 0.928 - Macro Recall: 0.907 - Micro Recall: 0.914 - Weighted Recall: 0.914 ## Usage You can use cURL to access this model: ``` $ 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/neuralspace/autotrain-ecomm1.8-1360552485 ``` Or Python API: ``` from transformers import AutoModelForSequenceClassification, AutoTokenizer model = AutoModelForSequenceClassification.from_pretrained("neuralspace/autotrain-ecomm1.8-1360552485", use_auth_token=True) tokenizer = AutoTokenizer.from_pretrained("neuralspace/autotrain-ecomm1.8-1360552485", use_auth_token=True) inputs = tokenizer("I love AutoTrain", return_tensors="pt") outputs = model(**inputs) ```