作者您好,看到源码中限制了任务的数量,必须要大于1,可以修改这里的源码,用于单任务吗
ple源码
` num_tasks = len(task_names)
if num_tasks <= 1:
raise ValueError("num_tasks must be greater than 1")
if len(task_types) != num_tasks:
raise ValueError("num_tasks must be equal to the length of task_types")
for task_type in task_types:
if task_type not in ['binary', 'regression']:
raise ValueError("task must be binary or regression, {} is illegal".format(task_type))
作者您好,看到源码中限制了任务的数量,必须要大于1,可以修改这里的源码,用于单任务吗 ple源码 ` num_tasks = len(task_names) if num_tasks <= 1: raise ValueError("num_tasks must be greater than 1")
`