and I want to pass the third feature as a factor term f(2, coding = 'one-hot').
However, the encoding fails returning this error:
ValueError: X data must be type int or float, but found type: <class 'numpy.object_'> Try transforming data with a LabelEncoder first. as a consequence of utils.check_array
Hi,
I have an array as:
[[ '1234' 0.123 'GitHub']]
and I want to pass the third feature as a factor term f(2, coding = 'one-hot'). However, the encoding fails returning this error:
ValueError: X data must be type int or float, but found type: <class 'numpy.object_'> Try transforming data with a LabelEncoder first.
as a consequence of utils.check_arrayAny suggestion to overcome this issue?