def find_min(tree):
    """Finds the minimum leaf value in a tree
        Parameters
        ----------
        tree : dict
            parsed model
        """
    if 'leaf' in tree.keys():
        return tree['leaf']
    else:
        mapped = list(map(lambda t: find_min(t), tree['children']))
        return min(mapped)