【问题标题】:c50 code called exit with value 1c50 代码调用退出,值为 1
【发布时间】: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


    【解决方案1】:

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

    1. 尽管有消息,但仍将其分配给变量。
    2. 查看它的摘要,看看它是否告诉我其他任何信息。

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

    【讨论】:

      猜你喜欢
      • 2016-09-10
      • 2016-11-27
      • 2014-05-13
      • 2011-04-11
      • 2017-07-14
      • 1970-01-01
      • 2018-01-11
      • 2018-08-10
      • 1970-01-01
      相关资源
      最近更新 更多