fonisce le previsioni della cv, da utilizzare dentro sapply(1:k,...)
1 | knn_crossvalidation(i, K = 1, y, x, folds, package = "FNN")
|
i |
i-esimo fold |
K |
number of neighbours considered. |
y |
vettore. variabile risposta |
x |
matrice variabili esplicative |
folds |
prodotto da kfold function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.