You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run Superlearner on google colab (python 3.10 or 3.7), but I am getting an error in the Superlearner import (from mlens.ensemble import SuperLearner). The error is:
from collections import Sequence
ImportError: cannot import name ‘Sequence’ from ‘collections’ (/usr/lib/python3.10/collections/init.py)
Do you know how to solve this issue?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
I found the following:
To solve the Python "ImportError: cannot import name 'Sequence' from 'collections'" error:
Import the Sequence class from collections. abc , as a change was made in Python 3.10.
Update the versions of any modules that have old import statements.
But I did not try it. Could you update this Sequence class from collections. abc , please?
I am trying to run Superlearner on google colab (python 3.10 or 3.7), but I am getting an error in the Superlearner import (from mlens.ensemble import SuperLearner). The error is:
from collections import Sequence
ImportError: cannot import name ‘Sequence’ from ‘collections’ (/usr/lib/python3.10/collections/init.py)
Do you know how to solve this issue?
Thank you in advance.
The text was updated successfully, but these errors were encountered: