-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix some minor bugs in source code/examples/tests #5
Comments
Fixes in your current fork (jonathanng/cvxportfolio) seem reasonable, yet the examples do not work: (1) Need to fix keyword change in call to MarketSimulator in HelloWorld and SinglePeriodOptimization (2) After the name change the, HelloWorld gives reasonable results, but SinglePeriodOptimization gives negative returns for most of the coarse search parameters. The results do not correspond to plots in the notebook in the repository ( or in the paper). Thanks. |
Try the examples in my branch. Those should work. |
Hi @jonathanng, Thanks for getting back. I tried your master branch (https://github.com/jonathanng/cvxportfolio, latest commit). My earlier comments are about the examples and the code in that branch (using the latest available versions of python 3.6 and notebook on Homebrew). HelloWorld errors out in call to MarketSimulator: TypeError Traceback (most recent call last) TypeError: init() got an unexpected keyword argument 'market_returns' Upon correcting the keyword to your March 2 commit, the notebook runs and gives reasonable results. PortfolioSimulation.ipynb also needs the same correction. However, it generates results that are very different ( Active Risk at 19.3%) from those in the notebook on github. SinglePeriodOptimization also generates very different results after the keyword correction. Most of the results of coarse search have very large negative excess returns. Please re-run the examples. If you post the corrections in your branch I will be happy to test them out. |
I did a bug-fixing pass, I believe everything in the examples works right now. |
Can you please let me know where I can find fixed examples. It's been a year, so I assume the master branch must have been updated, but I still see the same error on MPOReturnsForecast with abstract methods weight_expr. TIA. |
Hi @enzobusseti, I'm still running into problems trying to instiantiate
|
hello @enzobusseti @SteveDiamond @jonathanng
thank you for providing this great framework for portfolio optimization. I am wondering would you mind spent a little time fixing some minor bugs in source code and in examples/tests.
Some bugs likes:
(1) Can't instantiate abstract class MPOReturnsForecast with abstract methods weight_expr.
(2) ValueError: Incompatible dimensions (430, 1) (431, 1)
(3) parameter name mistake, like returns_forecast and alpha_model.
(4) the first argument of SPO policy in SPO examples.
thanks for your time and have a good day.
The text was updated successfully, but these errors were encountered: