转换为 Weka 日期格式 [英] Convert to Weka date format

查看:60
本文介绍了转换为 Weka 日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有一些属性的 csv 文件.一个是带有日期的日期属性 - yyyy-mm-dd hh:mm:ss .但是 Weka 将其视为名义而不是日期类型.如何解决这个问题?请帮我解决一下这个.(我使用 Weka Explorer)

I have a csv file with some attributes. One is a date attribute with date in this form - yyyy-mm-dd hh:mm:ss . But Weka takes it as nominal not as date type. How to fix this? Please help me with this. (I use Weka Explorer)

推荐答案

一个很好的参考,你可以在这里得到它:https://waikato.github.io/weka-wiki/formats_and_processing/arff_stable/

A nice reference, you can get it here: https://waikato.github.io/weka-wiki/formats_and_processing/arff_stable/

这是 Weka 文件中属性的简单编译...

It's a simple compilation of attributes from Weka files ...

时间示例:

@RELATION Timestamps

@ATTRIBUTE timestamp DATE "yyyy-MM-dd HH:mm:ss" 

@DATA 
"2001-04-03 12:12:12"
"2001-05-03 12:59:55"

这篇关于转换为 Weka 日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆