{
  "id": 523638,
  "title": "Import pycaret error",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/523638",
  "author_name": "",
  "post_date": "2024-08-01T21:46:06.847617600Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>import pycaret<br>\nfrom pycaret.regression import setup, compare_models<br>\n​<br>\nThis error keeps showing up when I try to import from pycaret </p>\n<p>“cannot import name '_fit_context' from 'sklearn.base' (/opt/conda/lib/python3.10/site-packages/sklearn/base.py)”</p>",
  "messages": [
    {
      "id": "2943799",
      "postDate": "08/01/2024 21:46:06",
      "content": "<p>import pycaret<br>\nfrom pycaret.regression import setup, compare_models<br>\n​<br>\nThis error keeps showing up when I try to import from pycaret </p>\n<p>“cannot import name '_fit_context' from 'sklearn.base' (/opt/conda/lib/python3.10/site-packages/sklearn/base.py)”</p>",
      "rawMarkdown": "import pycaret\nfrom pycaret.regression import setup, compare_models\n​\nThis error keeps showing up when I try to import from pycaret \n\n“cannot import name '_fit_context' from 'sklearn.base' (/opt/conda/lib/python3.10/site-packages/sklearn/base.py)”",
      "votes": null
    },
    {
      "id": "2944924",
      "postDate": "08/02/2024 21:35:04",
      "content": "<p>Make sure you are using a version of 'scikit-learn' that is compatible with your version of PyCaret. You can usually find this information in the PyCaret documentation or release notes.</p>",
      "rawMarkdown": "Make sure you are using a version of 'scikit-learn' that is compatible with your version of PyCaret. You can usually find this information in the PyCaret documentation or release notes.",
      "votes": null
    },
    {
      "id": "2963823",
      "postDate": "08/19/2024 08:18:09",
      "content": "<p>Just try installing a specific and compatible version of pycaret, using \"pip install pycaret==…\"</p>",
      "rawMarkdown": "Just try installing a specific and compatible version of pycaret, using \"pip install pycaret==...\"",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2944924,
      "author_name": "impjoshi",
      "author_url": "",
      "post_date": "08/02/2024 21:35:04",
      "content": "<p>Make sure you are using a version of 'scikit-learn' that is compatible with your version of PyCaret. You can usually find this information in the PyCaret documentation or release notes.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2963823,
      "author_name": "denizcanelci",
      "author_url": "",
      "post_date": "08/19/2024 08:18:09",
      "content": "<p>Just try installing a specific and compatible version of pycaret, using \"pip install pycaret==…\"</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2943799": "import pycaret\nfrom pycaret.regression import setup, compare_models\n​\nThis error keeps showing up when I try to import from pycaret \n\n“cannot import name '_fit_context' from 'sklearn.base' (/opt/conda/lib/python3.10/site-packages/sklearn/base.py)”",
    "2944924": "Make sure you are using a version of 'scikit-learn' that is compatible with your version of PyCaret. You can usually find this information in the PyCaret documentation or release notes.",
    "2963823": "Just try installing a specific and compatible version of pycaret, using \"pip install pycaret==...\""
  },
  "source": "meta"
}