Parthsoni10 commited on
Commit
d6e9873
·
verified ·
1 Parent(s): b378e6d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +110 -0
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: Supply Chain Agent Input Samples
4
+ task_categories:
5
+ - tabular-classification
6
+ - tabular-regression
7
+ - time-series-forecasting
8
+ tags:
9
+ - supply-chain
10
+ - multi-agent
11
+ - synthetic
12
+ - logistics
13
+ - inventory
14
+ - demand-forecasting
15
+ size_categories:
16
+ - 100K<n<1M
17
+ language:
18
+ - en
19
+ configs:
20
+ - config_name: default
21
+ data_files:
22
+ - split: train
23
+ path: agent_input_samples_250k.csv
24
+ ---
25
+
26
+ # Supply Chain Agent Input Samples
27
+
28
+ Synthetic input samples for a five-agent supply-chain platform
29
+ ([aizenio/supplychain-ops](https://github.com/aizenio/supplychain-ops)).
30
+
31
+ Each row is one internally consistent snapshot that satisfies the **input
32
+ contract of every agent skill** — 67 columns covering demand forecasting,
33
+ inventory monitoring, logistics/shipment evaluation, anomaly detection and
34
+ strategic analysis. A single row can be fed to any agent without
35
+ post-processing.
36
+
37
+ ## Why it exists
38
+
39
+ The agents needed realistic, reproducible inputs to be exercised against
40
+ without standing up the live world simulation. This dataset is the recorded
41
+ input side of that system, generated from the platform's own reference data and
42
+ formulas so the values stay consistent with agent behaviour.
43
+
44
+ ## Contents
45
+
46
+ | Column group | Fields |
47
+ |---|---|
48
+ | Identity | `sample_id`, `tick`, `sim_date`, `scenario`, `applicable_skills` |
49
+ | Product | `product_id`, `product_name`, `category`, `base_demand`, `unit_cost` |
50
+ | Location | `location`, `location_name`, `location_type`, `capacity` |
51
+ | Demand | `external_factors`, `current_demand`, `predicted_demand`, `trend`, `spike_detected`, `spike_magnitude`, `historical_avg`, `std_deviation` |
52
+ | Demand anomaly | `demand_z_score`, `demand_anomaly`, `demand_anomaly_severity` |
53
+ | Inventory | `current_stock`, `daily_demand`, `reorder_point`, `fill_rate`, `status`, `days_of_supply`, `needs_reorder` |
54
+ | Reallocation | `from_location`, `to_location`, `quantity`, `reason` |
55
+ | Logistics | `shipment_id`, `origin`, `destination`, `distance_km`, `weather_condition`, `traffic_level`, `expected_hours`, `revised_hours`, `delay_hours`, `delay_reason`, `shipment_status`, `progress`, `departed_tick`, `current_tick`, `expected_duration_ticks` |
56
+ | Anomaly | `inventory_anomaly_type`, `inventory_anomaly_severity`, `logistics_anomaly_type`, `logistics_anomaly_severity` |
57
+ | Correlation | `anomalies_json` |
58
+ | GOD agent | `inventory_data_json`, `demand_data_json`, `events_summary_json`, `alerts_json`, `event_history_json`, `risks_json`, `causes_json` |
59
+ | Insight | `predictions_json`, `recommendations_json`, `summary`, `confidence` |
60
+
61
+ Rows: **250,000** × 67 columns.
62
+
63
+ ## How it was generated
64
+
65
+ Values are derived from the platform's own reference data and formulas, not
66
+ sampled arbitrarily:
67
+
68
+ - `PRODUCTS`, `LOCATIONS`, `ROUTES` and `_CAPACITY` from
69
+ `app/core/simulation.py` — 8 SKUs × 8 locations, real coordinates used for
70
+ haversine distances.
71
+ - Seasonal curve `1 + 0.25·sin(2π(doy−80)/365)` and the external-factor weight
72
+ map from `demand_agent.py`.
73
+ - Weather/traffic delay multipliers from `logistics_agent.py`
74
+ (`clear 1.0 … storm 1.8`, `low 1.0 … severe 2.0`).
75
+ - `reorder_point = daily_demand × 7` and fill-rate status thresholds
76
+ (`<0.20 critical`, `<0.40 low`, `>0.90 excess`) from `inventory_agent.py`.
77
+ - z-score anomaly bands (`>3 critical`, `>2 high`, `>1.5 medium`) from
78
+ `anomaly_agent.py`.
79
+
80
+ The sampling universe is 8 SKUs × 8 locations × 365 ticks = 23,360 unique
81
+ combinations, so 250k rows covers every combination roughly ten times over.
82
+
83
+ Regenerate with:
84
+
85
+ ```bash
86
+ python scripts/generate_agent_input_samples.py 250000 --out docs/samples.csv
87
+ python scripts/build_local_sqlite.py --rows 250000
88
+ ```
89
+
90
+ ## Usage
91
+
92
+ ```python
93
+ from datasets import load_dataset
94
+
95
+ ds = load_dataset("<hf-username>/supplychain-agent-input-samples", split="train")
96
+ row = ds[0]
97
+ ```
98
+
99
+ ## Intended use and limits
100
+
101
+ - **Intended:** exercising, testing and benchmarking the agent network;
102
+ query-heavy demos; as a template for supply-chain tabular schemas.
103
+ - **Not intended:** real operational planning. The data is synthetic and the
104
+ network topology is a fixed 8×8 reference graph.
105
+ - Values reflect one platform's formulas, so statistical properties are
106
+ internally consistent rather than drawn from real-world distributions.
107
+
108
+ ## License
109
+
110
+ MIT, matching the source repository.