from typing import Dict
from pathlib import Path
import yaml


def load_optimizer_settings() -> Dict:
    """ Load the experiment settings from file """
    optimizer_settings_path = Path(__file__).absolute().parent.parent / 'optimizer_settings.yaml'
    with optimizer_settings_path.open('r') as fh:
        optimizer_settings = yaml.load(fh, yaml.FullLoader)
    return optimizer_settings