时间:2021-07-01 10:21:17 帮助过:3人阅读
# specific data types,去掉注释,改为weka支持的数据格式
string, getString() = 0; --> nominal
boolean, getBoolean() = 1; --> nominal
double, getDouble() = 2; --> numeric
byte, getByte() = 3; --> numeric
short, getByte()= 4; --> numeric
int, getInteger() = 5; --> numeric
long, getLong() = 6; --> numeric
float, getFloat() = 7; --> numeric
date, getDate() = 8; --> date
text, getString() = 9; --> string
time, getTime() = 10; --> date
BigDecimal,getBigDecimal()=11; -->nominal
#mysql-conversion --类型转换,做如下补充
TINYINT=3
SMALLINT=4
SHORT=5
INTEGER=5
INT=5
INT_UNSIGNED=6
BIGINT=6
LONG=6
REAL=7
NUMERIC=2
DECIMAL=2
FLOAT=2
DOUBLE=2
CHAR=0
TEXT=0
VARCHAR=0
LONGVARCHAR=9
BINARY=0
VARBINARY=0
LONGVARBINARY=9
BIT=1
BLOB=8
DATE=8
TIME=8
DATETIME=8
TIMESTAMP=8
3、重新打包。命令行进入D:\Program Files\Weka-3-6\package,执行命令:jar cvf weka.jar java_cup META-INF weka,替换原来的weka.jar。
四、运行weka
单击explorer>>单击open DB>>单击User>>输入用户名,密码>>单击Connect
下图代表成功
weka连接mysql数据库
标签: