src/data/__init__.py
def load_params(filepath="params.yaml") -> dict:
    """Helper function to load params.yaml

    Args:
        filepath (str): filename or full filepath to yaml file with parameters

    Returns:
        dict: dictionary of parameters
    """

    assert (os.path.isfile(filepath)), FileNotFoundError

    # read params.yaml
    with open(filepath, "r") as file:
        params = yaml.safe_load(file)

    return params
Helper function to load params.yaml

    Args:
        filepath (str): filename or full filepath to yaml file with parameters

    Returns:
        dict: dictionary of parameters
    
Helper function to load params.yaml
Helper function to load params . yaml
def load_params(filepath="params.yaml") -> dict:
    assert (os.path.isfile(filepath)), FileNotFoundError
    with open(filepath, "r") as file:
        params = yaml.safe_load(file)
    return params
def load_params ( filepath = "params.yaml" ) -> dict : assert ( os . path . isfile ( filepath ) ) , FileNotFoundError with open ( filepath , "r" ) as file : params = yaml . safe_load ( file ) return params
Helper function to load params.yaml
Helper function to load params . yaml
"""Helper function to load params.yaml

    Args:
        filepath (str): filename or full filepath to yaml file with parameters

    Returns:
        dict: dictionary of parameters
    """ # read params.yaml
dictionary of parameters
dictionary of parameters
dict
filepath
filename or full filepath to yaml file with parameters
filename or full filepath to yaml file with parameters