问题
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