File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44from valor_implementation import _calculate_pr_curves
55from optimized_implementation import _calculate_pr_curves_optimized
66
7- n = 1000
7+ n = 10000000
88n_class = 3
99predictions_per_datum = 3
1010
1111groundtruth_df = generate_groundtruth (n , n_class )
1212prediction_df = generate_predictions (n , n_class , 3 )
1313
1414print (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)
2828end = time .time ()
2929print (f"Valor completed { n } in { end - start } " )
3030
31-
3231start = time .time ()
3332fast_df = _calculate_pr_curves_optimized (
3433 groundtruth_df = groundtruth_df ,
You can’t perform that action at this time.
0 commit comments