-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add HRP optimizer #60
base: master
Are you sure you want to change the base?
Conversation
def __init__(self, cov_matrix: pd.DataFrame): | ||
|
||
self._cov_matrix = cov_matrix | ||
self._columns = cov_matrix.columns |
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.
Se colocarem uma cov_matrix numpy não funciona, infelizmente esse typing nao faz verificação dinâmica
turingquant/optimizers.py
Outdated
|
||
return seriation_columns | ||
|
||
def _recursive_besection(self, seriation_columns): |
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.
O nome dessa função é besection msm?
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.
Dá uma olhada nos comentários que eu deixei. Talvez seja necessário fazer alguma alteração.
Falando sobre a estrutura de diretorios, eu preferiria que optimizers fosse um diretorio, e dentro dele tivesse HierachicalRiskParity.py e Markowitz.py. Eu acho que fica mais organizado.
No description provided.