from pathlib import Path
import json


def _load_model_config(path: Path) -> dict:
    """Load PivenKerasRegressor model config"""
    with (path / "piven_model_config.json").open("r") as infile:
        return json.load(infile)