在 CTG 数据集上建立随机森林模型:以 NSP 为因变量,其余列为自变量。
Build a random forest model on top of this ‘CTG’ dataset, where ‘NSP’ is the dependent variable and all other columns are independent variables.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
分类: Data Science
参考答案摘要
答案 我们将使用 read.csv 加载 CTG 数据集: 将整数类型转换为因子(factor): 构建混淆矩阵并计算准确率: data<-read.csv("C:/Users/intellipaat/Downloads/CTG.csv",header=True) str(data) data$NSP<-as.factor(data$NSP) table(data$NSP) #...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。