I installed imbalanced-learn package using (Python 2.7):
conda install -c conda-forge imbalanced-learn
after installing it, I tried to import SMOTE from the package.
from imblearn.over_sampling import SMOTE
which gave the following error:
File "C:\.conda\envs\py27\lib\site-packages\imblearn\base.py", line 21
class SamplerMixin(BaseEstimator, metaclass=ABCMeta):
^
SyntaxError: invalid syntax
can anybody help me in resolving this error or point out if I didn't install the package correctly?