In scikit-learn, OneHotEncoder and LabelEncoder are available in inpreprocessing module. However OneHotEncoder does not support to fit_transform ... ... <看更多>
This is what the error is saying. You have to preprocess the data before training it and one of the steps in preprocessing is to encode the ... ... <看更多>
... raise new_ve from None 286 else: 287 raise ve ValueError: Cannot use median strategy with non-numeric data: could not convert string to float: 'INLAND' ... <看更多>
from sklearn.tree import DecisionTreeClassifier ... Convert date_recorded to datetime ... ValueError: could not convert string to float: 'functional'. ... <看更多>