Skip to main content

Overview

run_po_job builds portfolio weights with skfolio.
  • Default: data_extractor_*.json — no ML needed
  • With forecasts: ml_engine_*.json / nn_engine_*.json — use predicted returns as μ (mu_mode: custom)
Ask for a method (equal weight, HRP, max Sharpe, DCC, …); skills fill the rest.

Parameters

string
required
Blob storage URL pointing to one of:
  • data_extractor_*.json — output of run_data_extraction (default path)
  • ml_engine_*.json — output of run_ml_job
  • nn_engine_*.json — output of run_dl_job
object
required
Portfolio optimization configuration.
Dates normally come from the data you already extracted: name the sample start and end there, and let the first covariance_window days serve as warmup. Set Backtest params only when you want a specific split or a shorter evaluation window than the data allows.

Returns

A run stays Succeeded when knobs are remapped or some dates fall back to equal weights. Read effective_params, coercions and warnings before treating the result as the portfolio you asked for.
The blob contains Weights, Prices, and Meta (includes fallback flags if optimization falls back to equal weights).

Example — default path (data → PO)

Example — HRP with covariance mode

Example — ML-enhanced path


Next Step

Pass output_url to run_trading_job as input_url. Optional: run_plot_job, run_st_job, run_risk_job.