-
Notifications
You must be signed in to change notification settings - Fork 93
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
Refine Portfolio Notebook. #160
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Agreed this looks really nice, btw. we could create a gif inside the notebook as well, I did something similar in https://github.com/mlpack/examples/blob/master/pima_indians_diabetes_clustering_with_kmeans/pima-indians-diabetes-kmeans-cpp.ipynb Also, should we keep the NSGA notebook as well, just to show NSGA2? |
portfolio_optimization_moead/portfolio-optimization-moead-cpp.ipynb
Outdated
Show resolved
Hide resolved
Brilliant idea! Sure I can. To take this one step further, it'd be nice if we could put them side by side. NSGA-II and MOEAD, how's that sound? |
I guess we can modify Scatter a bit* |
Great idea, even better. |
I think it should work right away if you have the correct format, but feel free to modify it. |
We still haven't established the cause for the poor performance of the notebook. Especially since MOEAD, even with 300 population and 500 generations knocks off within 0.8 seconds in an Intel i5-8250U @ 1.7 GHz CPU. How's the progress with OpenBLAS (if I remember correctly) to the repository, @zoq ? I think it still wouldn't be much of a boost. My guess is that it's spending a lot of time before actually calling |
Fixed lag. The entire notebook runs within 1 minute with beautiful plots. @zoq please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a really minor style comment, the rest looks great to me.
portfolio_optimization_moead/portfolio-optimization-moead-cpp.ipynb
Outdated
Show resolved
Hide resolved
I was thinking of creating gif util and use it here actually. So that, on two subplots you can see them evolving side by side. |
@zoq I think this is ready. |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"In this section, we will create a helper class which will generate the CSV file for us based on the parameters provided in previous section. This class would also define the objective functions in question, namely: Return and Volatility. Ideally, we would want to maximize the returns and reduce the volatility. Since our implementation of algorithm works on minimization of all objectives, we have appended negative sign to the returns objective which converts it into a minimization problem." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only generate the csv file if the cell above was run, I think it would be useful to be clear about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more comments from my side, thanks!
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
No need of this one.
Working 100%
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second approval provided automatically after 24 hours. 👍
Thanks! |
No description provided.