Text Classification
Transformers
Safetensors
English
emcoder
emotion-recognition
bayesian-deep-learning
mc-dropout
uncertainty-quantification
multi-label-classification
custom_code
Eval Results (legacy)
Instructions to use yezdata/EmCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yezdata/EmCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yezdata/EmCoder", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("yezdata/EmCoder", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -92,8 +92,6 @@ model = AutoModel.from_pretrained(repo_id, trust_remote_code=True)
|
|
| 92 |
### 2. Bayesian inference
|
| 93 |
To obtain probabilistic outputs and uncertainty metrics, use the `mc_forward` method:
|
| 94 |
```python
|
| 95 |
-
import torch
|
| 96 |
-
|
| 97 |
# Perform 50 stochastic passes
|
| 98 |
N_SAMPLES = 50
|
| 99 |
model.eval()
|
|
|
|
| 92 |
### 2. Bayesian inference
|
| 93 |
To obtain probabilistic outputs and uncertainty metrics, use the `mc_forward` method:
|
| 94 |
```python
|
|
|
|
|
|
|
| 95 |
# Perform 50 stochastic passes
|
| 96 |
N_SAMPLES = 50
|
| 97 |
model.eval()
|