Skip to content

Jupyter kernel dies with njobs > 1 #18

@oort77

Description

@oort77

Describe the bug

Jupyter kernel dies with njobs > 1 in classification task.


To Reproduce

import pandas as pd
from sklearn.datasets import load_breast_cancer
from atom import ATOMClassifier

X, y = load_breast_cancer(return_X_y=True)
atom = ATOMClassifier(X, y, logger="auto", n_jobs=2, verbose=2)
atom.impute(strat_num="knn", strat_cat="most_frequent", max_nan_rows=0.1)  
atom.encode(strategy="LeaveOneOut", max_onehot=8, frac_to_other=0.05)  
atom.feature_selection(strategy="PCA", n_features=12)

atom.run(
    models=["LR","XGB"],#  "lSVM", "LDA"
    metric="f1",
    n_calls=25,
    n_initial_points=10,
    n_bootstrap=4
)

Expected behavior

As described above. Works fine with njobs=1.


Additional context

Ubuntu 20.04. Python 3.9.7. Separate conda environment with packages installed
from atom requirements.txt.


Version

4.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions