@staticmethod<EOL><INDENT>def normalize_weights(raw_weights):<DEDENT>
return raw_weights / raw_weights.sum()<EOL>
Make all weights sum to 1

:param raw_weights: input weights which do not sum to 1
:type raw_weights: np.array, pd.Series
:return: normalized weights
:rtype: np.array, pd.Series