Repository navigation
allocation 0.0.2
Correctness release: nine P1 fixes (#107). Each has a regression test.
Behaviour changes
SchurBridge/bridge_weightswithlong_only=TrueraiseValueErrorinstead of returning a short position (#60).barrier_constrainand the box-constraint estimators reject infeasible or malformed groups, caps andtau, and raise if the solve does not converge (#51).- Backtest turnover, cost and net Sharpe are charged on drift-adjusted trades when
asset_returnsis supplied, whichcompareandcompare_random_subsetsnow do;target_turnoverkeeps the old quantity (#49). - One-factor Thurstone calibration raises
RuntimeErrorwhen the inverse does not reproduce its target. With winning 1.5.0 this affects highly correlated pairs; a winning release including its PR #163 removes it (#58). - The low-rank factor sketch is deterministic and follows the assets under relabelling;
seedno longer affectsfactor_decompose(#79).
Fixes
KeyedEwmaCovariance.matrix()stays positive definite when assets drop out and return (#50).- Inversion portfolios on a singular covariance no longer depend on asset labels (#85).
- A Thurstone target must have one entry per asset (#89).
- Supplied factor models are checked against the asset count; online estimators must return one finite weight per asset (#91).