Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ple可以只用于单任务吗 #525

Open
leiqing110 opened this issue Jun 30, 2023 · 0 comments
Open

ple可以只用于单任务吗 #525

leiqing110 opened this issue Jun 30, 2023 · 0 comments
Labels

Comments

@leiqing110
Copy link

作者您好,看到源码中限制了任务的数量,必须要大于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))

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant