generated from coulomb/repo-seed
Implement customer-tuning solver and close WP-0006
This commit is contained in:
@@ -18,6 +18,7 @@ from .load import (
|
||||
load_payment_records,
|
||||
load_pricing_models,
|
||||
load_product,
|
||||
load_tuning_requests,
|
||||
load_value_range,
|
||||
)
|
||||
from .allocation import build_cost_allocation
|
||||
@@ -27,6 +28,7 @@ from .membership_analytics import build_membership_analytics
|
||||
from .pricing_context import build_cost_floor, build_market_price_view, build_value_range_view
|
||||
from .recommendations import build_pricing_recommendations
|
||||
from .simulator import build_pricing_simulations
|
||||
from .tuning import build_customer_tuning_pilot
|
||||
from .usage import build_usage_summary, load_usage_records
|
||||
|
||||
|
||||
@@ -90,6 +92,7 @@ def build_dashboard_payload(data_dir: Path | None = None, period: str | None = N
|
||||
usage_records = load_usage_records(root)
|
||||
usage_summary = build_usage_summary(usage_records, target_period)
|
||||
ltv_scenarios = load_ltv_scenarios(root)
|
||||
tuning_requests = load_tuning_requests(root)
|
||||
cost_floor = build_cost_floor(snapshot, models)
|
||||
value_range = build_value_range_view(value_range_raw, snapshot, product, models)
|
||||
market_price = build_market_price_view(market_raw)
|
||||
@@ -102,6 +105,13 @@ def build_dashboard_payload(data_dir: Path | None = None, period: str | None = N
|
||||
usage_records=usage_records,
|
||||
scenario_catalog=ltv_scenarios,
|
||||
)
|
||||
customer_tuning = build_customer_tuning_pilot(
|
||||
snapshot,
|
||||
models,
|
||||
usage_records,
|
||||
ltv_scenarios,
|
||||
tuning_requests,
|
||||
)
|
||||
boundary_validation = build_boundary_validation(snapshot, models, usage_records)
|
||||
credit_wallets = load_credit_wallets(root)
|
||||
credit_summary = build_credit_summary(
|
||||
@@ -135,6 +145,7 @@ def build_dashboard_payload(data_dir: Path | None = None, period: str | None = N
|
||||
"usage": usage_summary,
|
||||
"cost_allocation": cost_allocation,
|
||||
"pricing_simulations": simulations,
|
||||
"customer_tuning": customer_tuning,
|
||||
"boundary_validation": boundary_validation,
|
||||
"credit_wallets": credit_summary,
|
||||
"recommendations": recommendations,
|
||||
|
||||
Reference in New Issue
Block a user