Skip to content

Commit 597a083

Browse files
committed
added a raw prediction method
1 parent 48d4221 commit 597a083

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

R/nearest_neighbor_data.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,14 @@ nearest_neighbor_kknn_data <-
7777
newdata = quote(new_data),
7878
type = "prob"
7979
)
80+
),
81+
raw = list(
82+
pre = NULL,
83+
func = c(fun = "predict"),
84+
args =
85+
list(
86+
object = quote(object$fit),
87+
newdata = quote(new_data)
88+
)
8089
)
8190
)

0 commit comments

Comments
 (0)