pydvl.valuation.scorers.knn
¶
Specialized scorer for k-nearest neighbors models.
KNNClassifierScorer
¶
Bases: SupervisedScorer
Scorer for KNN classifier models based on the KNN likelihood.
Typically, users will not create instances of this class directly but indirectly
by using pydvl.valuation.utility.KNNUtility
.
PARAMETER | DESCRIPTION |
---|---|
test_data |
The test data to evaluate the model on.
|