(cfg: DictConfig)
return out
A dummy function to minimize
    Minimum is 0.0 at:
    lr = 0.12, dropout=0.33, db=mnist, batch_size=4
A dummy function to minimize
    Minimum is 0.0 at:
    lr = 0.12, dropout=0.33, db=mnist, batch_size=4
A dummy function to minimize Minimum is 0 . 0 at : lr = 0 . 12 dropout = 0 . 33 db = mnist batch_size = 4
def dummy_training(cfg: DictConfig) -> float:
    """A dummy function to minimize
    Minimum is 0.0 at:
    lr = 0.12, dropout=0.33, db=mnist, batch_size=4
    """
    do = cfg.dropout
    bs = cfg.batch_size
    out = float(
        abs(do - 0.33) + int(cfg.db == "mnist") + abs(cfg.lr - 0.12) + abs(bs - 4)
    )
    log.info(
        f"dummy_training(dropout={do:.3f}, lr={cfg.lr:.3f}, db={cfg.db}, batch_size={bs}) = {out:.3f}",
    )
    if cfg.error:
        raise RuntimeError("cfg.error is True")
    return out
def dummy_training ( cfg : DictConfig ) -> float : do = cfg . dropout bs = cfg . batch_size out = float ( abs ( do - 0.33 ) + int ( cfg . db == "mnist" ) + abs ( cfg . lr - 0.12 ) + abs ( bs - 4 ) ) log . info ( f"dummy_training(dropout={do:.3f}, lr={cfg.lr:.3f}, db={cfg.db}, batch_size={bs}) = {out:.3f}" , ) if cfg . error : raise RuntimeError ( "cfg.error is True" ) return out