def _get_weights(path_weight):
    """
    Read weights from file
    """
    weights = []
    with open(path_weight, 'r') as file:
        found = False
        for line in file:
            if not found and not line.startswith('++'):
                continue
            elif line.startswith('++'):
                found = True
            else:
                weights.append(float(line))

    return weights