Skip to content
Christian Salomonsen edited this page Jan 30, 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:

Contributing

We try to first PR to the test branch, then from test branch open PR to main branch.

Project structure

We are deciding on a project structure.

Currently we think a structure like the one below looks good:

```sh
doc/
src/
	utils/
		metrics.py
		models.py
	data/
		MNIST/
		SVHN/
		USPS/
		etc../
	results/
	experiments/

Metrics

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

Datasets

from torch.utils.data import Dataset

class MyDataset(Dataset):
	def __init__(self, ...):
		super().__init__()
		...

	def __len__(self):
		return

	def __getitem(self, id):
		return
Clone this wiki locally