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

Add HRP optimizer #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add HRP optimizer #60

wants to merge 2 commits into from

Conversation

lucas-leme
Copy link
Member

No description provided.

@lucas-leme
Copy link
Member Author

Adicionar otimizador HRP

def __init__(self, cov_matrix: pd.DataFrame):

self._cov_matrix = cov_matrix
self._columns = cov_matrix.columns
Copy link
Member

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


return seriation_columns

def _recursive_besection(self, seriation_columns):
Copy link
Member

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?

Copy link
Member

@guilhermefgs guilhermefgs left a 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.

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

Successfully merging this pull request may close these issues.

3 participants