|
8 | 8 | def _(): |
9 | 9 | import marimo as mo |
10 | 10 | import numpy as np |
11 | | - from rtichoke import create_performance_table |
| 11 | + from rtichoke import create_performance_table, create_performance_table_times |
12 | 12 |
|
13 | | - return create_performance_table, mo, np |
| 13 | + return create_performance_table, create_performance_table_times, mo, np |
14 | 14 |
|
15 | 15 |
|
16 | 16 | @app.cell |
@@ -69,6 +69,29 @@ def _(create_performance_table, mo, model_a, model_b, reals): |
69 | 69 | return |
70 | 70 |
|
71 | 71 |
|
| 72 | +@app.cell |
| 73 | +def _(np): |
| 74 | + time_probs = { |
| 75 | + "Model A": np.array([0.10, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 1.00]) |
| 76 | + } |
| 77 | + time_reals = np.array([0, 0, 0, 0, 1, 1, 1, 1, 1, 1]) |
| 78 | + times = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) |
| 79 | + return time_probs, time_reals, times |
| 80 | + |
| 81 | + |
| 82 | +@app.cell |
| 83 | +def _(create_performance_table_times, mo, time_probs, time_reals, times): |
| 84 | + mo.md("## Fixed time horizons — 5 and 10") |
| 85 | + create_performance_table_times( |
| 86 | + probs=time_probs, |
| 87 | + reals=time_reals, |
| 88 | + times=times, |
| 89 | + fixed_time_horizons=[5, 10], |
| 90 | + by=0.10, |
| 91 | + ) |
| 92 | + return |
| 93 | + |
| 94 | + |
72 | 95 | @app.cell |
73 | 96 | def _(mo): |
74 | 97 | mo.md( |
|
0 commit comments