def get_split(config: dict): split_config = config["split"] name = split_config["name"] if hasattr(sms, name): return sms.__getattribute__(name)(**split_config["params"]) else: return MultilabelStratifiedKFold(**split_config["params"])
def get_split(config: dict): split_config = config["split"] name = split_config["name"] return sms.__getattribute__(name)(**split_config["params"])