pythonでランダムフォレストを使おうとしているのですが,以下のエラーが出てきます。
どうすればよいのかご教授お願い致します。
Traceback (most recent call last):
File "random.py", line 4, in <module>
from sklearn.ensemble import RandomForestClassifier
File "/Library/Python/2.7/site-packages/sklearn/__init__.py", line 57, in <module>
from .base import clone
File "/Library/Python/2.7/site-packages/sklearn/base.py", line 12, in <module>
from .utils.fixes import signature
File "/Library/Python/2.7/site-packages/sklearn/utils/__init__.py", line 18, in <module>
from ..externals.joblib import cpu_count
File "/Library/Python/2.7/site-packages/sklearn/externals/joblib/__init__.py", line 128, in <module>
from .parallel import Parallel
File "/Library/Python/2.7/site-packages/sklearn/externals/joblib/parallel.py", line 30, in <module>
from ._parallel_backends import (FallbackToBackend, MultiprocessingBackend,
File "/Library/Python/2.7/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 17, in <module>
from .pool import MemmapingPool
File "/Library/Python/2.7/site-packages/sklearn/externals/joblib/pool.py", line 23, in <module>
import tempfile
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 35, in <module>
from random import Random as _Random
File "/Users/kudoururiko/Program/random.py", line 4, in <module>
from sklearn.ensemble import RandomForestClassifier
File "/Library/Python/2.7/site-packages/sklearn/ensemble/__init__.py", line 6, in <module>
from .base import BaseEnsemble
File "/Library/Python/2.7/site-packages/sklearn/ensemble/base.py", line 11, in <module>
from ..base import clone
ImportError: cannot import name clone