INNER CODE UNIT · Python

get_algorithm

microsoft/Semi-supervised-learning · semilearn/algorithms/__init__.py:7

def get_algorithm(args, net_builder, tb_log, logger):
    if args.algorithm in ALGORITHMS:
        alg = ALGORITHMS[args.algorithm]( # name2alg[args.algorithm](
            args=args,
            net_builder=net_builder,
            tb_log=tb_log,
            logger=logger
        )
        return alg
    else:
        raise KeyError(f'Unknown algorithm: {str(args.algorithm)}')



View source record →

📰 Research Paper
Loading…
⏳ Fetching content…