Content-Length: 226910 | pFad | http://github.com/scikit-learn-contrib/MAPIE/issues/661

06 Multiprocessing in MAPIE fails with Python 3.12/3.13 · Issue #661 · scikit-learn-contrib/MAPIE · GitHub
Skip to content

Multiprocessing in MAPIE fails with Python 3.12/3.13 #661

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

Open
Valentin-Laurent opened this issue Apr 21, 2025 · 0 comments
Open

Multiprocessing in MAPIE fails with Python 3.12/3.13 #661

Valentin-Laurent opened this issue Apr 21, 2025 · 0 comments
Labels
Backlog This is in the MAPIE team development backlog, yet to be prioritised. Contributors welcome 👋🏻 Especially relevant issue/PR for contributors to work on. Other or internal If no other grey tag is relevant or if issue from the MAPIE team

Comments

@Valentin-Laurent
Copy link
Collaborator

Multiprocessing (ie: n_jobs=-1) in MAPIE fails when using python 3.13 and 3.12 (maybe it was failing silently for older versions).

This is the case at least when using MapieClassifier, and also most probably using MapieRegressor, TimeSeriesRegressor, and MapieMultiLabelClassifier.

Minimal code example:

from sklearn.datasets import make_classification
from mapie.classification import MapieClassifier

n_classes = 4
X, y = make_classification(
    n_samples=500,
    n_features=10,
    n_informative=3,
    n_classes=n_classes,
)

mapie_clf_multi = MapieClassifier(n_jobs=-1)
mapie_clf_multi.fit(X, y)
y_pred_multi, y_ps_multi = mapie_clf_multi.predict(X)

Returns ChildProcessError: [Errno 10] No child processes [..] (in the ResourceTracker module)

When running the test suite, the test_results_single_and_multi_jobs tests raise exceptions. Those exceptions are displayed but ignored, so the test suite passes, but the code would fail in a regular environnement.

@Valentin-Laurent Valentin-Laurent added Backlog This is in the MAPIE team development backlog, yet to be prioritised. Contributors welcome 👋🏻 Especially relevant issue/PR for contributors to work on. Other or internal If no other grey tag is relevant or if issue from the MAPIE team labels Apr 21, 2025
@Valentin-Laurent Valentin-Laurent changed the title Make MAPIE work with Python 3.12 and 3.13 Multiprocessing in MAPIE fails with Python 3.12/3.13 Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog This is in the MAPIE team development backlog, yet to be prioritised. Contributors welcome 👋🏻 Especially relevant issue/PR for contributors to work on. Other or internal If no other grey tag is relevant or if issue from the MAPIE team
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/scikit-learn-contrib/MAPIE/issues/661

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy