Skip to content
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

Hello World example #7

Closed
MBKraus opened this issue Apr 29, 2018 · 1 comment
Closed

Hello World example #7

MBKraus opened this issue Apr 29, 2018 · 1 comment

Comments

@MBKraus
Copy link

MBKraus commented Apr 29, 2018

Hi,

I went through the "Hello World" example via Jupyter notebook, but when defining SPO policy it does not recognize "return_forecast". After leaving this parameter out it says that the "alpha_model" needs to be given. I assumed that this is the same parameter as "return_forecast" and assigned "r_hat" to it, but this gives an AssertionError. Could you kindly tell me whether something has changed to the policy parameters?

NB - it seems the policies.py for the stand-alone module (v. 0.02 installed) differs from the policies.py on GitHub, which might be causing this issue.

Many thanks & best regards,

Mike Kraus

@ghost
Copy link

ghost commented May 1, 2018

Mike

the issue has been fixed in the repo, and I just updated the version in pypi (i.e., pip). You can also use the repo directly:

git clone https://github.com/cvxgrp/cvxportfolio.git
cd cvxportfolio
conda env create -f test_environment.yml
source activate cvxportfolio-testing
jupyter notebook

and then run the examples. Or, install the package
python setup.py install

@ghost ghost closed this as completed May 1, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant