You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Any suggestion to overcome this issue?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: