R語言邏輯迴歸 logistic regression

R語言邏輯迴歸代碼示例 rm(list=ls()) require(kernlab) data(spam) data <- spam n <- nrow(spam) id <- sample(1:n, floor(n*0.5)) train <- data[id,] test <- data[-id,] mdl <- glm(formula = type~., family = binom
相關文章
相關標籤/搜索