0

我在 R 中有以下代码,我想执行统计测试(wilcox)以确定两个模型之间是否存在显着差异。

set.seed(308)

rand_search <- train(
    Effort ~ ., data = d,
    method = "svmRadial",
    ##Create 20 random parameter values
    tuneLength = 20,
    metric = "RMSE",
    preProc = c("center", "scale"),
    trControl = rand_ctrl
) 
  model1 <- predict(rand_search, newdata = test1)

And another search algorithm like grid
grid_search <- train(
    Effort ~ ., data = d,
    method = "svmRadial",
    ##Create 20 random parameter values
    tuneLength = 20,
    metric = "RMSE",
    preProc = c("center", "scale"),
    trControl = rand_ctrl
) 
model2 <- predict(grid_search, newdata = test1)

我的问题是下一步是什么,以便我们执行 wilcox 测试,例如 wilcox.test (model1, model2)

4

0 回答 0