Commit
•
63a3946
1
Parent(s):
33a42fa
Markdown updates
Browse files- app.py +2 -1
- utilities.py +2 -2
app.py
CHANGED
@@ -35,7 +35,8 @@ def anki_optimizer(file, timezone, next_day_starts_at, revlog_start_date, reques
|
|
35 |
"""
|
36 |
|
37 |
w_markdown = f"""
|
38 |
-
#
|
|
|
39 |
`var w = {w};`
|
40 |
|
41 |
Check out the Analysis tab for more detailed information."""
|
|
|
35 |
"""
|
36 |
|
37 |
w_markdown = f"""
|
38 |
+
# Updated Parameters
|
39 |
+
Copy and paste these as shown in step 5 of the instructions:
|
40 |
`var w = {w};`
|
41 |
|
42 |
Check out the Analysis tab for more detailed information."""
|
utilities.py
CHANGED
@@ -279,9 +279,9 @@ def my_loss(dataset, w):
|
|
279 |
# print(f"Loss after training: {dataset['log_loss'].mean():.4f}")
|
280 |
loss_after = f"{dataset['log_loss'].mean():.4f}"
|
281 |
return f"""
|
282 |
-
|
283 |
|
284 |
-
|
285 |
"""
|
286 |
|
287 |
|
|
|
279 |
# print(f"Loss after training: {dataset['log_loss'].mean():.4f}")
|
280 |
loss_after = f"{dataset['log_loss'].mean():.4f}"
|
281 |
return f"""
|
282 |
+
**Loss before training**: {loss_before}
|
283 |
|
284 |
+
**Loss after training**: {loss_after}
|
285 |
"""
|
286 |
|
287 |
|