Skip to content

Experiences using multiprocessing.Pool? #45

@shortydutchie

Description

@shortydutchie

Hi

I wrapped the functionality used by qsartuna-optimize in a function and call that using python's multiprocessing (using Pool) to run some model builds in parallel. It all seems to work (great!) but I noticed that there is a warning

"/home/xxxx/.venv/env_qsartuna314/lib/python3.10/site-packages/optunaz/objective.py:200: UserWarning: Loky-backed parallel loops cannot be called in a multiprocessing, setting n_jobs=1"

which is likely because children cannot spawn children. Is there a way to suppress that warning eg. by having qsartuna specify njobs=1 at that point?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions