Skip to content

Commit 0ac6829

Browse files
typo
1 parent 6f2ecf5 commit 0ac6829

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

valor-sandbox/valor_sandbox.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
from valor_implementation import _calculate_pr_curves
55
from optimized_implementation import _calculate_pr_curves_optimized
66

7-
n = 1000
7+
n = 10000000
88
n_class = 3
99
predictions_per_datum = 3
1010

1111
groundtruth_df = generate_groundtruth(n, n_class)
1212
prediction_df = generate_predictions(n, n_class, 3)
1313

1414
print(f"Groundtruth Dataframe Memory Usage: {groundtruth_df.memory_usage(index=True).sum()}")
15-
print(f"Prediction Dataframe Memory Usage: {groundtruth_df.memory_usage(index=True).sum()}")
15+
print(f"Prediction Dataframe Memory Usage: {prediction_df.memory_usage(index=True).sum()}")
1616

1717
## Randomly drop some samples.
1818
## groundtruth_df = groundtruth_df.sample(frac=0.9)
@@ -28,7 +28,6 @@
2828
end = time.time()
2929
print(f"Valor completed {n} in {end - start}")
3030

31-
3231
start = time.time()
3332
fast_df = _calculate_pr_curves_optimized(
3433
groundtruth_df=groundtruth_df,

0 commit comments

Comments
 (0)