Skip to content

Commit 682d78f

Browse files
committed
readme
1 parent 1a38c29 commit 682d78f

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616
import random
1717
import math
1818
import trackio
19+
import time
20+
21+
sleep_time = 0.5
1922

2023
# Launch 5 simulated experiments
2124
total_runs = 5
2225
for run in range(total_runs):
26+
2327
trackio.init(
24-
project="basic-intro",
28+
project="basic-intro-4",
2529
name=f"experiment_{run}",
2630
config={
2731
"learning_rate": 0.02,
@@ -30,18 +34,15 @@ for run in range(total_runs):
3034
"epochs": 10,
3135
},
3236
)
37+
time.sleep(sleep_time)
3338

3439
epochs = 10
3540
offset = random.random() / 5
3641
for epoch in range(2, epochs):
37-
acc = 1 - 2 ** -epoch - random.random() / epoch - offset
38-
loss = 2 ** -epoch + random.random() / epoch + offset
42+
time.sleep(sleep_time)
43+
acc = 1 - 2**-epoch - random.random() / epoch - offset
44+
loss = 2**-epoch + random.random() / epoch + offset
3945
trackio.log({"acc": acc, "loss": loss})
40-
41-
trackio.finish()
42-
43-
# To launch the Gradio UI:
44-
trackio.ui()
4546
```
4647

4748
Trackio is designed to be lightweight (<500 lines of code total), not fully-featured. It is designed in a modular way so that developers can easily fork the repository and add functionality that they care about.

0 commit comments

Comments
 (0)