Problem Description:
For the problems encountered in automatic modeling today, we use iris data set to initialize the automl framework and pass in training data. The problem is that in the last line of fit, an error is reported: attributeerror: module ‘pandas’ has no attribute’ rolling_ At that time, I read the wrong version of pandas on the Internet. Then I reinstalled it on the Internet and found that it still couldn’t.
Use Microsoft’s flaml automated modeling framework to directly pip, Install flaml. Attach Code:
from flaml import AutoML
from sklearn.datasets import load_iris
import pandas as pd
iris = load_iris()
iris_data = pd.concat([pd.DataFrame(iris.data),pd.Series(iris.target)],axis=1)
iris_data.columns = ["_".join(feature.split(" ")[:2]) for feature in iris.feature_names]+["target"]
iris_data = iris_data[(iris_data.target==0) |(iris_data.target==1)]
flaml_automl = AutoML()
flaml_automl.fit(pd.DataFrame(iris_data.iloc[:,:-1]),iris_data.iloc[:,-1],time_budget=10,estimator_list=['lgbm','xgboost'])
After the upgrade dask is finally executed (PIP install — upgrade dask), it can run normally. However, it is strange that the error message does not prompt dask related problems. Some bloggers on the Internet say that dask provides interfaces to pandas and numpy, which may be caused by the low version of the interface??
Finally, after upgrading dask, the problem is solved!
Read More:
- [Solved] pandas ExcelWrite AttributeError: ‘NoneType‘ object has no attribute ‘group‘
- [How to Solve]AttributeError: module ‘scipy’ has no attribute ‘io’
- [Solved] AttributeError: module ‘tensorflow‘ has no attribute ‘distributions‘
- AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘ [How to Solve]
- AttributeError: module ‘time‘ has no attribute ‘clock‘ [How to Solve]
- [Solved] AttributeError: module ‘librosa.feature‘ has no attribute ‘inverse‘
- [Solved] AttributeError: module ‘logging‘ has no attribute ‘Handler‘
- [Solved] AttributeError: module ‘distutils‘ has no attribute ‘version‘
- [Solved] AttributeError: module ‘PIL.Image‘ has no attribute ‘open‘
- [Solved] AttributeError: module ‘time‘ has no attribute ‘clock‘
- [Solved] AttributeError: module ‘setuptools._distutils‘ has no attribute ‘version‘
- [How to Solve]AttributeError: module ‘scipy’ has no attribute ‘stats’
- [Solved] Pytorch call tensorboard error: AttributeError: module ‘tensorflow’ has no attribute ‘gfile’
- [Solved] AttributeError: module ‘dlib‘ has no attribute ‘get_face_chip‘
- [Perfectly Solved] attributeerror: module ‘SciPy. Misc’ has no attribute ‘toimage’ error
- Python3.7 AttributeError: module ‘time‘ has no attribute ‘clock‘
- [Solved] Error: AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
- Python AttributeError: module ‘tensorflow‘ has no attribute ‘InteractiveSession‘
- [Solved]AttributeError: module ‘urllib’ has no attribute ‘quote’
- BlazingSQL Error: AttributeError: module ‘cio‘ has no attribute ‘RunQueryError‘