Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -522,7 +522,8 @@ server <- function(input, output, session){
|
|
| 522 |
to_pred_df <- read_csv(input$file_data$datapath)
|
| 523 |
vep %>%
|
| 524 |
augment(new_data = to_pred_df) %>%
|
| 525 |
-
mutate(.pred_class = factor(if_else(.pred_Yes > 0.5, "Yes", "No"), levels = c("Yes", "No")))
|
|
|
|
| 526 |
}
|
| 527 |
})
|
| 528 |
|
|
|
|
| 522 |
to_pred_df <- read_csv(input$file_data$datapath)
|
| 523 |
vep %>%
|
| 524 |
augment(new_data = to_pred_df) %>%
|
| 525 |
+
mutate(.pred_class = factor(if_else(.pred_Yes > 0.5, "Yes", "No"), levels = c("Yes", "No"))) %>%
|
| 526 |
+
arrange(desc(.pred_Yes))
|
| 527 |
}
|
| 528 |
})
|
| 529 |
|