Spaces:
Running
Running
Create main.py
#4
by
vedanth0
- opened
main.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from aim import Run
|
2 |
+
|
3 |
+
# Initialize a new run
|
4 |
+
run = Run()
|
5 |
+
|
6 |
+
# Log run parameters
|
7 |
+
run["hparams"] = {
|
8 |
+
"learning_rate": 0.001,
|
9 |
+
"batch_size": 32
|
10 |
+
}
|
11 |
+
|
12 |
+
# Log metrics
|
13 |
+
for i in range(10):
|
14 |
+
run.track(i, name='loss', step=i, context={ "subset":"train" })
|
15 |
+
run.track(i, name='acc', step=i, context={ "subset":"train" })
|