vahuynh / GENIE3

Machine learning-based approach for the inference of gene regulatory networks from expression data.
68 stars 32 forks source link

sklearn version issue #8

Open NehaBhojani opened 3 years ago

NehaBhojani commented 3 years ago

Traceback (most recent call last): File "test_run.py", line 1, in from GENIE3 import File "/mnt/f/SBX/GENIE3/GENIE3.py", line 1, in from sklearn.tree.tree import BaseDecisionTree File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/init.py", line 64, in from .base import clone File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/base.py", line 14, in from .utils.fixes import signature File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/utils/init.py", line 14, in from . import _joblib File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/utils/_joblib.py", line 22, in from ..externals import joblib File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/init.py", line 119, in from .parallel import Parallel File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/parallel.py", line 28, in from ._parallel_backends import (FallbackToBackend, MultiprocessingBackend, File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 22, in from .executor import get_memmapping_executor File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/executor.py", line 14, in from .externals.loky.reusable_executor import get_reusable_executor File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/loky/init.py", line 12, in from .backend.reduction import set_loky_pickler File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/loky/backend/reduction.py", line 125, in from sklearn.externals.joblib.externals import cloudpickle # noqa: F401 File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/init.py", line 3, in from .cloudpickle import File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 152, in _cell_set_template_code = _make_cell_set_template_code() File "/home/nehabhojani/.local/lib/python3.8/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 133, in _make_cell_set_template_code return types.CodeType( TypeError: an integer is required (got type bytes)

vahuynh commented 2 years ago

Hi, Which version of sklearn are you using? I just performed a fix for version >= 0.24.