rhlprj's picture
Upload synth.py with huggingface_hub
b7463c1 verified
Raw
History Blame Contribute Delete
450 Bytes
"""
Synthetic data generator v2 - slot-level.
Each request → 224 rows (14 days x 16 hrs).
Realized slot = label=1, all others = label=0.
Seed=42.
"""
import numpy as np, pandas as pd, os
SEED = 42
np.random.seed(SEED)
N_TRAIN = 20_000
N_VAL = 2_000
N_TEST = 2_000
N_SLOTS = 14 * 16
N_CONTAINERS = 50_000
N_TRUCKERS = 5_000
N_TRUCKERS_TRAIN = 1_500
HOURS = list(range(6, 22))
N_HOURS = len(HOURS)
START_DATE = pd.Timestamp("2024-01-01", tz="UTC")