【发布时间】:2019-01-25 04:05:49
【问题描述】:
我不断收到问题"c50 code called exit with value 1"。
当我对我的模型进行总结时
Call:
C5.0.default(x = new_train[, -13], y = new_train$scored)
C5.0 [Release 2.07 GPL Edition] Sat Aug 18 04:23:51 2018
-------------------------------
*** line 7 of `undefined.names': `:' or `:=' expected after attribute name `Da Capo'
Error limit exceeded
我认为 R 不喜欢名称中的冒号,所以我删除了所有冒号。 (在excel中)
我的数据如下所示:
'data.frame': 178 obs. of 13 variables:
$ animeID: int 1 5 6 7 8 15 16 17 18 19 ...
$ name : chr "Cowboy Bebop" "Cowboy Bebop Tengoku no Tobira" "Trigun" "Witch Hunter Robin" ...
$ genre : chr "Action" "Action" "Action" "Action" ...
$ genre.1: chr " Adventure" " Space" " Sci-Fi" " Magic" ...
$ genre.2: chr " Comedy" " Drama" " Adventure" " Police" ...
$ genre.3: chr " Drama" " Mystery" " Comedy" " Supernatural" ...
$ genre.4: chr " Sci-Fi" " Sci-Fi" " Drama" " Drama" ...
$ genre.5: chr " Space" "" " Shounen" " Mystery" ...
$ genre.6: chr "" "" "" "" ...
$ genre.7: chr "" "" "" "" ...
$ genre.8: chr "" "" "" "" ...
$ genre.9: chr "" "" "" "" ...
$ scored : Factor w/ 2 levels "No","Yes": 2 2 2 2 2 2 2 2 2 2 ...
所以我在这里关注了其他一些帖子,并在我的不同类型列中修复了“”值。对于每个相应的流派列,levels(credit$genre)[1] = "missing"。但我仍然遇到同样的问题。
有人可以帮帮我吗?
【问题讨论】:
标签: r