Constructor KNearestNeighborClassifier
KNearestNeighborClassifier(Int32)
Create a IClassifier<T> using kNN algorithm
Declaration
public KNearestNeighborClassifier(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | the number of neighbors to analyze as an |
KNearestNeighborClassifier(Int32, Int32, Int32)
Create a IClassifier<T> using kNN algorithm
Declaration
public KNearestNeighborClassifier(int k, int minDocsFreq, int minTermFreq)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | the number of neighbors to analyze as an |
System.Int32 | minDocsFreq | the minimum number of docs frequency for MLT to be set with MinDocFreq |
System.Int32 | minTermFreq | the minimum number of term frequency for MLT to be set with MinTermFreq |