Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Predict resubstitution labels of *k*-nearest neighbor
classifier

`label = resubPredict(mdl)`

```
[label,score]
= resubPredict(mdl)
```

```
[label,score,cost]
= resubPredict(mdl)
```

If you standardize the predictor data, that is,

`mdl.Mu`

and`mdl.Sigma`

are not empty (`[]`

), then`resubPredict`

standardizes the predictor data before predicting labels.

`ClassificationKNN`

| `fitcknn`

| `predict`

| `resubEdge`

| `resubLoss`

| `resubMargin`