aephidayatuloh
commited on
Commit
·
08391ed
1
Parent(s):
d883625
upd fix error augment
Browse files- Dockerfile +0 -1
- app.R +2 -2
Dockerfile
CHANGED
|
@@ -12,7 +12,6 @@ WORKDIR $HOME
|
|
| 12 |
RUN install2.r --error \
|
| 13 |
dplyr \
|
| 14 |
tidyr \
|
| 15 |
-
vetiver \
|
| 16 |
echarts4r \
|
| 17 |
shiny
|
| 18 |
|
|
|
|
| 12 |
RUN install2.r --error \
|
| 13 |
dplyr \
|
| 14 |
tidyr \
|
|
|
|
| 15 |
echarts4r \
|
| 16 |
shiny
|
| 17 |
|
app.R
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# library(readr)
|
| 2 |
library(tidyr)
|
| 3 |
-
library(
|
| 4 |
library(shiny)
|
| 5 |
library(bslib)
|
| 6 |
library(dplyr)
|
|
@@ -69,7 +69,7 @@ server <- function(input, output, session) {
|
|
| 69 |
|
| 70 |
x <- x |>
|
| 71 |
tidyr::expand_grid(univ_major = c("International Relations", "IT Department", "Law Department", "Psychology Department", "Statistic and Data Science"))
|
| 72 |
-
|
| 73 |
arrange(desc(.pred)) |>
|
| 74 |
slice_head(n = 5) |>
|
| 75 |
mutate(pred_GPA = round(.pred, 2)) |>
|
|
|
|
| 1 |
# library(readr)
|
| 2 |
library(tidyr)
|
| 3 |
+
library(workflows)
|
| 4 |
library(shiny)
|
| 5 |
library(bslib)
|
| 6 |
library(dplyr)
|
|
|
|
| 69 |
|
| 70 |
x <- x |>
|
| 71 |
tidyr::expand_grid(univ_major = c("International Relations", "IT Department", "Law Department", "Psychology Department", "Statistic and Data Science"))
|
| 72 |
+
augment(x = model, new_data = x) |>
|
| 73 |
arrange(desc(.pred)) |>
|
| 74 |
slice_head(n = 5) |>
|
| 75 |
mutate(pred_GPA = round(.pred, 2)) |>
|