Update README.md
Browse files
README.md
CHANGED
|
@@ -92,7 +92,7 @@ probabilities = torch.nn.functional.softmax(logits, dim=-1)
|
|
| 92 |
print(f"Probabilities shape: {probabilities.shape}")
|
| 93 |
|
| 94 |
# Get probabilities associated with intron
|
| 95 |
-
idx_intron = features.index("intron")
|
| 96 |
probabilities_intron = probabilities[:,:,idx_intron]
|
| 97 |
print(f"Intron probabilities shape: {probabilities_intron.shape}")
|
| 98 |
```
|
|
|
|
| 92 |
print(f"Probabilities shape: {probabilities.shape}")
|
| 93 |
|
| 94 |
# Get probabilities associated with intron
|
| 95 |
+
idx_intron = model.config.features.index("intron")
|
| 96 |
probabilities_intron = probabilities[:,:,idx_intron]
|
| 97 |
print(f"Intron probabilities shape: {probabilities_intron.shape}")
|
| 98 |
```
|