日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

决策树c语言程序代码,R C5.0 决策树c50代码,名为 exit 1_r_开发99编程知识库

發布時間:2025/4/16 55 豆豆
生活随笔 收集整理的這篇文章主要介紹了 决策树c语言程序代码,R C5.0 决策树c50代码,名为 exit 1_r_开发99编程知识库 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我收到以下錯誤

c50代碼,名為 exit exit exit

我是根據Kaggle提供的泰坦尼克數據做# Importing datasets

train

# this is the structure

str(train)

輸出:-'data.frame': 891 obs. of 12 variables:

$ PassengerId: int 1 2 3 4 5 6 7 8 9 10.. .

$ Survived : int 0 1 1 1 0 0 0 0 1 1.. .

$ Pclass : int 3 1 3 1 3 3 1 3 3 2.. .

$ Name : Factor w/891 levels"Abbing, Mr. Anthony",..: 109 191 358 277 16 559 520 629 417 581.. .

$ Sex : Factor w/2 levels"female","male": 2 1 1 1 2 2 2 2 1 1.. .

$ Age : num 22 38 26 35 35 NA 54 2 27 14.. .

$ SibSp : int 1 1 0 1 0 0 0 3 0 1.. .

$ Parch : int 0 0 0 0 0 0 0 1 2 0.. .

$ Ticket : Factor w/681 levels"110152","110413",..: 524 597 670 50 473 276 86 396 345 133.. .

$ Fare : num 7.25 71.28 7.92 53.1 8.05.. .

$ Cabin : Factor w/148 levels"","A10","A14",..: 1 83 1 57 1 1 131 1 1 1.. .

$ Embarked : Factor w/4 levels"","C","Q","S": 4 2 4 4 4 3 4 4 4 2.. .

然后我嘗試使用 C5.0 dtree# Trying with C5.0 decision tree

library(C50)

#C5.0 models require a factor outcome otherwise error

train$Survived

new_model

所以運行上面的行給我這個錯誤c50 code called exit with value 1

我無法找出發生了什么? 我在不同的數據集中使用類似的代碼,它工作正常。 關于如何調試代碼的任何想法?

-Thanks

總結

以上是生活随笔為你收集整理的决策树c语言程序代码,R C5.0 决策树c50代码,名为 exit 1_r_开发99编程知识库的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。