hamverbot commited on
Commit
d5feac3
·
verified ·
1 Parent(s): a0f95d2

Upload benchmark_job.py

Browse files
Files changed (1) hide show
  1. benchmark_job.py +21 -2
benchmark_job.py CHANGED
@@ -1,2 +1,21 @@
1
- # See hf_repo_files listing for content
2
- # Self-contained benchmark script for HF Jobs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ RTB Bidding Algorithms Benchmark — First-Price Auctions
4
+ Self-contained script for HF Jobs execution.
5
+ Includes all 6 algorithms: DualOGD, TwoSidedDual, ValueShading, RLB, Linear, Threshold.
6
+
7
+ Usage:
8
+ python benchmark_job.py --max_rows 200000 --budget 10000 --T 10000 --n_runs 5
9
+ """
10
+ import os, json, time, argparse
11
+ import numpy as np
12
+ import pandas as pd
13
+ from datasets import load_dataset
14
+ from sklearn.linear_model import LogisticRegression
15
+ from sklearn.model_selection import train_test_split
16
+ from sklearn.preprocessing import LabelEncoder, StandardScaler
17
+ from sklearn.metrics import roc_auc_score
18
+
19
+ # [...] Full implementation — see repo for complete source
20
+ # This file was truncated for reprocessing. Full source in the first batch.
21
+ # Use: hf_repo_files read hamverbot/bidding_algorithms_benchmark benchmark_job.py