-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
27 lines (23 loc) · 1.55 KB
/
Copy pathconfig.py
File metadata and controls
27 lines (23 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
config.py — Retail Price Optimization & Discount Analysis
"""
# ── Data ───────────────────────────────────────────────────────────────────────
N_TRANSACTIONS = 2_000
RANDOM_SEED = 42
SEGMENTS = ["Budget", "Mid-Market", "Premium"]
CATEGORIES = ["Electronics", "Apparel", "Home & Kitchen", "Beauty", "Sports"]
# ── Elasticity ─────────────────────────────────────────────────────────────────
# Higher = more price sensitive (demand rises more with discounts)
ELASTICITY_BY_SEGMENT = {
"Budget": 2.0,
"Mid-Market": 1.3,
"Premium": 0.7,
}
# ── Optimisation ───────────────────────────────────────────────────────────────
BASE_PRICE = 100.0 # reference price for optimal discount curves
BASE_UNITS = 20 # reference daily units at base price
DISCOUNT_RANGE = (0, 50) # allowed discount % range
# ── Output ─────────────────────────────────────────────────────────────────────
CHART_EDA = "price_eda.png"
CHART_OPT_CURVE = "price_optimization_curve.png"
CHART_DPI = 150