TDAMM Multi-Label Classification Model
The TDAMM (Time Domain Multi-Messenger Astronomy) model is created to categorize NASA’s time domain multi-messenger resources into one or more of 36 distinct categories identified by subject matter experts (SMEs)
Model Description
- Base Model: astroBERT, fine-tuned for multi-label classification
- Task: Multi-label classification
- Training Data: A collection of 408 NASA and non-NASA documents related to TDAMM topics identified by SMEs
Data Distribution
![Distribution 1](https://cdn-uploads.huggingface.co/production/uploads/67804a0abd67e99d000342e1/oOZ3PhRsh6TDEfaSTTpxa.png)
![Distribution 2](https://cdn-uploads.huggingface.co/production/uploads/67804a0abd67e99d000342e1/kKpL5XWCtgWiXHLAAmGz5.png)
![Distribution 3](https://cdn-uploads.huggingface.co/production/uploads/67804a0abd67e99d000342e1/hJQt5iBKYsVPSHQLIH2RG.png)
Performance Analysis
![Threshold 1](https://cdn-uploads.huggingface.co/production/uploads/67804a0abd67e99d000342e1/aX8X-b7dehTwaA-opBulN.png)
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("nasa-impact/tdamm-classification")
model = AutoModelForSequenceClassification.from_pretrained("nasa-impact/tdamm-classification")
# Prepare input
text = "Your astronomical test text here"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=512)
# Get predictions
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.sigmoid(outputs.logits)
# Convert to binary predictions (threshold = 0.5)
predictions = (predictions > 0.5).int()
Label Mapping During Inference
After obtaining predictions from the model, we can map the predicted label indices to their actual names using the model.config.id2label
dictionary
# Example usage
predicted_indices = [0, 2, 5]
predicted_labels = [model.config.id2label[idx] for idx in predicted_indices]
print(predicted_labels)
- Downloads last month
- 6
Inference Providers
NEW
This model is not currently available via any of the supported third-party Inference Providers, and
the model is not deployed on the HF Inference API.
Model tree for nasa-impact/tdamm-classification
Base model
adsabs/astroBERT