Tag Archives: scikit-learn

Error on ‘inverse_transform’ of LabelEncoder

If you get the following error when calling inverse_transform on sklearn.preprocessing.LabelEncoder ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() You could be passing in a numpy.ndarray of strings, not numeric … Continue reading

Posted in Programming | Tagged , , | Leave a comment