readme: ---
  tags:
  - autotrain
  - text-classification
  language:
  - en
  widget:
  - text: "I love AutoTrain 🤗"
  datasets:
  - ranajoy98/autotrain-data-clauses_classifier
  co2_eq_emissions:
    emissions: 0.712310551029896
  ---
  
  # Model Trained Using AutoTrain
  
  - Problem type: Multi-class Classification
  - Model ID: 2847083405
  - CO2 Emissions (in grams): 0.7123
  
  ## Validation Metrics
  
  - Loss: 0.642
  - Accuracy: 0.795
  - Macro F1: 0.810
  - Micro F1: 0.795
  - Weighted F1: 0.796
  - Macro Precision: 0.807
  - Micro Precision: 0.795
  - Weighted Precision: 0.802
  - Macro Recall: 0.819
  - Micro Recall: 0.795
  - Weighted Recall: 0.795
  
  
  ## 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/ranajoy98/autotrain-clauses_classifier-2847083405
  ```
  
  Or Python API:
  
  ```
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
  
  model = AutoModelForSequenceClassification.from_pretrained("ranajoy98/autotrain-clauses_classifier-2847083405", use_auth_token=True)
  
  tokenizer = AutoTokenizer.from_pretrained("ranajoy98/autotrain-clauses_classifier-2847083405", use_auth_token=True)
  
  inputs = tokenizer("I love AutoTrain", return_tensors="pt")
  
  outputs = model(**inputs)
  ```