Added evaluation pipeline

This commit is contained in:
2026-02-26 20:15:19 +00:00
parent 96a0c45e84
commit 99896c0873
4 changed files with 193 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ import torch.nn as nn
# Each nn.linear is used to map RoBERTa's hidden representation onto the output space of each task head
# Each hidden representation is size 768
class SingleTaskModel(nn.Module): # SINGLE TASK MODEL ARCHITECTURE
class SingleTaskModel(nn.Module): # TASK-SPECIFIC/SINGLE-TASK MODEL ARCHITECTURE
def __init__(self, task_name, num_classes, dropout_rate=0.2):
super().__init__()
self.encoder = XLMRobertaModel.from_pretrained("FacebookAI/xlm-roberta-base")