I have import my dataset into h2o flow, I have one column which is categorical type, I wanna convert this into numerical data type.
If I use pandas for this task I'll do like this,
df['category_column'] = df['category_column'].astype('category')
df['category_column'] = df['category_column'].apply(lambda x: x.cat.codes)
How to do this in h2o flow,
I tried following,
- while parsing data i changed Data type to numeric from enum but data shows
·
like this. - I tried
convert to numeric
option, But it didn't work as I wish.
I don't know whether I'm going in right direction or not. Please help me to solve this issue.
Update on question as suggested:
Why GLM forced me to use numerical column?
Error evaluating cell
My dataset looks like this:
When I use GLM to build model and, I
is my response_column i'm getting following error
Error calling POST /3/ModelBuilders/glm with opts {"model_id":"glm-e2ed0066-636c-4c71-bf8...
ERROR MESSAGE: Illegal argument(s) for GLM model: glm-e2ed0066-636c-4c71-bf8c-04525eb05002. Details: ERRR on field: _response: Regression requires numeric response, got categorical. For more information visit: http://jira.h2o.ai/browse/TN-2