Skip to content

Commit 0bd207b

Browse files
committed
Fixed some things. Dry-run OK. Need changes in metric loader
1 parent 45513bc commit 0bd207b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ def main():
113113

114114
# wandb.login(key=WANDB_API)
115115
wandb.init(
116-
entity="ColabCode-org",
117-
# entity="FYS-8805 Exam",
118-
project="Test",
116+
entity="ColabCode",
117+
project="Magnus Runs",
119118
tags=[args.modelname, args.dataset],
119+
config=args,
120120
)
121121
wandb.watch(model)
122-
exit()
122+
123123
for epoch in range(args.epoch):
124124
# Training loop start
125125
trainingloss = []

utils/metrics/EntropyPred.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
class EntropyPrediction(nn.Module):
6-
def __init__(self, averages: str = "average"):
6+
def __init__(self, averages: str = "mean"):
77
"""
88
Initializes the EntropyPrediction module, which calculates the Shannon Entropy
99
of predicted logits and aggregates the results based on the specified method.

utils/models/magnus_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class MagnusModel(nn.Module):
5-
def __init__(self, image_shape, num_classes: int, nr_channels: int):
5+
def __init__(self, image_shape, num_classes: int, nr_channels: int = 1):
66
"""
77
Initializes the MagnusModel, a neural network designed for image classification tasks.
88
The model consists of three linear layers, each with 133 neurons, and uses ReLU activation

0 commit comments

Comments
 (0)