AttributeError: 'SimpleImputer' object has no attribute '_fit_dtype'
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 565
- Avg merge
- 5d 8m
- Merged PRs (30d)
- 17
Description
hi i m new into this FLAML.
i m getting this error while predicting my banknote problem
while using colab i m not getting this error but on pycharm using fastapi i m getting this error
**`AttributeError: 'SimpleImputer' object has no attribute '_fit_dtype'`**
heres my code:
**@app.post('/predict')
async def predict(data:person):
per=data.dict()
df = pd.DataFrame([[per['variance'],per['skewness'],per['curtosis'],per['entropy']]],columns=['variance','skewness','curtosis','entropy'])
print(df.head(1))
prediction=automl.predict(df.head(1))
print(prediction)**
this is my data
**variance skewness curtosis entropy
0 1.22 0.333 0.44 -3.22**
what should i do?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.