Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jqu-striveworks committed Aug 22, 2024
1 parent 6f2ecf5 commit 0ac6829
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions valor-sandbox/valor_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
from valor_implementation import _calculate_pr_curves
from optimized_implementation import _calculate_pr_curves_optimized

n = 1000
n = 10000000
n_class = 3
predictions_per_datum = 3

groundtruth_df = generate_groundtruth(n, n_class)
prediction_df = generate_predictions(n, n_class, 3)

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

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


start = time.time()
fast_df = _calculate_pr_curves_optimized(
groundtruth_df=groundtruth_df,
Expand Down

0 comments on commit 0ac6829

Please sign in to comment.