I'm trying to use tpot with my inputs in pandas dataframes. I keep getting the error:
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
I believe this error is from isnan not being able to handle my data structure, but I'm unsure how to format it differently. I have a combination of categorical and continuous inputs and continuous outputs. Here's an example of code with similar data:
train_x=[[1,2,3],['test1','test2','test3'],[56.2,4.5,3.4]]
train_y=[[3,6,7]]
from tpot import TPOTRegressor
tpot=TPOTRegressor()
Do I have to convert my categorical data somehow? dataframe.values and dataframe.as_matrix give me objects that also give me an error.