def new_estimator()

in src/entrypoint/train.py [0:0]


def new_estimator(algo: str, kwargs) -> Any:
    """Initialize an instance of klass with the specified kwargs."""
    klass: Any = locate(algo)
    estimator = klass(**kwargs)
    logger.info("Estimator: %s", estimator)
    return estimator