Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ rocCurve <- function(modelsList, targetVar) {
do.call(rbind, .) %>%
dplyr::group_by(model) %>%
yardstick::roc_curve(
truth = eval(parse(text = targetVar)),
# truth = eval(parse(text = targetVar)), 아래와 같이 수정
truth = targetVar,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋은 방향인 것 같습니다.

.pred_1,
event_level = "second"
) %>%
Expand Down Expand Up @@ -170,7 +171,8 @@ evalMetricsC <- function(modelsList, targetVar) {
tmp <- custom_metrics(
modelsList[[as.numeric(i)]] %>%
tune::collect_predictions(),
truth = eval(parse(text = targetVar)),
# truth = eval(parse(text = targetVar)), 아래와 같이 수정
truth = targetVar,
estimate = .pred_class
) %>%
dplyr::select(.estimate) %>%
Expand Down