def equal_risk_contributions(cov):
    '\n    Returns the weights of the portfolio that equalizes the contributions\n    of the constituents based on the given covariance matrix\n    '
    n = cov.shape[0]
    return target_risk_contributions(target_risk=np.repeat((1 / n), n), cov=cov)
Returns the weights of the portfolio that equalizes the contributions
of the constituents based on the given covariance matrix
def equal_risk_contributions(cov):
    '\n    Returns the weights of the portfolio that equalizes the contributions\n    of the constituents based on the given covariance matrix\n    '
    n = cov.shape[0]
    return target_risk_contributions(target_risk=np.repeat((1 / n), n), cov=cov)