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.
Without ML/DL: only sample start + end upstream. The evaluated period is everything after the first covariance_window days — there is no extra testing-end date. With ML/DL: still start + end of the sample; model training uses the train cut from extraction when present.

Returns

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


Resources


Next Step

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