c50代码称为退出,值为1

时间:2018-08-18 08:36:49

标签: r

我一直遇到问题"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 ...

因此,我在这里关注了其他一些帖子,并在我的不同流派栏中修复了“”值。对于每个相应的类型列,带有level(credit $ genre)[1] =“ missing”。但是我仍然遇到同样的问题。

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

不知道这是否对您有帮助,但是当我收到此消息时,我通常会:

  1. 尽管有消息,将其分配给变量。
  2. 查看它的摘要,看看它是否还告诉我其他内容。

    mdl = C5.0.default(x = new_train [,-13],y = new_train $ scored); summary(mdl)