(
self,
train_loader: DataLoader,
val_loader: DataLoader,
device: str = 'cuda',
epochs: int = 5,
quick_eval: bool = True
)
| 7 | |
| 8 | class ModelEvaluator: |
| 9 | def __init__( |
| 10 | self, |
| 11 | train_loader: DataLoader, |
| 12 | val_loader: DataLoader, |
| 13 | device: str = 'cuda', |
| 14 | epochs: int = 5, |
| 15 | quick_eval: bool = True |
| 16 | ): |
| 17 | self.train_loader = train_loader |
| 18 | self.val_loader = val_loader |
| 19 | self.device = device |
| 20 | self.epochs = epochs |
| 21 | self.quick_eval = quick_eval |
| 22 | |
| 23 | def evaluate(self, architecture: Architecture, search_space: SearchSpace) -> Tuple[float, float]: |
| 24 | try: |
nothing calls this directly
no outgoing calls
no test coverage detected