-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Christian Salomonsen edited this page Jan 31, 2025
·
10 revisions
Welcome to the Collaborative-Coding-Exam wiki!
We are deciding on a project structure.
Currently we think a structure like the one below looks good:
Changes should preferably first start out as an issue. Then create your own branch and open a pull-request to the main
branch which would need to be approved by 2 other maintainers.
We are deciding on a project structure.
Currently we think a structure like the one below looks good:
```sh
doc/
src/
utils/
metrics.py or metrics/
models.py or models/
data/
MNIST/
SVHN/
USPS/
etc../
results/
experiments/
import torch.nn as nn
class MyMetric(nn.Module):
def __init__(self, ...):
super().__init__()
...
def forward(self, x):
x_copy = x.copy()
...
return x_copy
from torch.utils.data import Dataset
class MyDataset(Dataset):
def __init__(self, ...):
super().__init__()
# Fetch data or check if data exists
...
def __len__(self):
return
def __getitem__(self, id):
return