h2o.ai - Flow UI not detecting date formatting to convert to Time

橙三吉。 提交于 2020-05-18 21:08:32

问题


I am using h2o's flow ui to uplaod a csv file to train a model on. When I upload the file and edit the column types before parsing, this is what I am setting a date column to:

After parsing, the data summary shows that all of the date column values are 'missing' and viewing the data with the view data button shows that they are indeed blanks (.).

Looking here for acceptable date formats, it says that:

"The first format is for dates formatted as yyyy-MM-dd. Year is a four-digit number, the month is a two-digit number ranging from 1 to 12, and the day is a two-digit value ranging from 1 to 31. This format can also be followed by a space and then a time (specified below)."

I have tried this format with and without (see image above) leading zeros for single digit numbers and still have the same result that h2o parses the date fields and blank, like this:

What is happening here and how can I fix it. Thanks :)


回答1:


Found the problem. In the docs mentioned in original post, it is specified that the dates should be yyyy-mm-dd. I was inputing the date data into h2o in the format yyyy/mm/dd. Changing the date info to the yyyy-mm-dd format seems to have fixed the problem (verifying that the first two dates map correctly to the first two output epoch time stamps).



来源:https://stackoverflow.com/questions/45848439/h2o-ai-flow-ui-not-detecting-date-formatting-to-convert-to-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!