Error Message "DataFrame.dtypes for data must be int, float or bool" Displayed in Logs
Symptom
DataFrame.dtypes for data must be int, float or bool
Possible Causes
The training data is not of the int, float, or bool type.
Solution
from sklearn import preprocessing lbl = preprocessing.LabelEncoder() train_x['acc_id1'] = lbl.fit_transform(train_x['acc_id1'].astype(str)
Summary and Suggestions
Before creating a training job, use the ModelArts development environment to debug the training code to maximally eliminate errors in code migration.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.