(self, idx)
| 46 | return length |
| 47 | |
| 48 | def __getitem__(self, idx): |
| 49 | return { |
| 50 | "input_ids": self.dataset[idx]["input_ids"], |
| 51 | "attention_mask": self.dataset[idx]["attention_mask"], |
| 52 | "labels": self.dataset[idx]["input_ids"] |
| 53 | } |
| 54 | |
| 55 | def get_weight_data(current_dataset, dataset_weight): |
| 56 | dataset = [] |
nothing calls this directly
no outgoing calls
no test coverage detected