Top "Knn" questions

In pattern recognition, k-nearest neighbors (k-NN) is a classification algorithm used to classify example based on a set of already classified examples.

K-Nearest Neighbour Implementation in Java

I'm looking for a decent implementation of KNN algorithm in java because, in my dissertation, I have to modify it …

java knn
kNN: training, testing, and validation

I am extracting image features from 10 classes with 1000 images each. Since there are 50 features that I can extract, I am …

machine-learning computational-geometry classification knn
How to use opencv flann::Index?

I have some problems with opencv flann::Index - I'm creating index Mat samples = Mat::zeros(vfv_net_quie.size(),24,…

c++ opencv knn
Using cosine distance with scikit learn KNeighborsClassifier

Is it possible to use something like 1 - cosine similarity with scikit learn's KNeighborsClassifier? This answer says no, but on …

python machine-learning scikit-learn knn
Is there any function to calculate Precision and Recall using Matlab?

I have problem about calculating the precision and recall for classifier in matlab. I use fisherIris data (that consists of 150 …

matlab knn confusion-matrix precision-recall
SMOTE initialisation expects n_neighbors <= n_samples, but n_samples < n_neighbors

I have already pre-cleaned the data, and below shows the format of the top 4 rows: [IN] df.head() [OUT] Year …

scikit-learn knn tf-idf oversampling imblearn
Find K nearest neighbors, starting from a distance matrix

I'm looking for a well-optimized function that accepts an n X n distance matrix and returns an n X k …

r sorting matrix distance knn
KNN train() in cv2 with opencv 3.0

I'm trying to run k-nearest neighbours using cv2 (python 2.7) and opencv 3.0. I've replicated the same error message using code like …

python opencv3.0 knn
AttributeError: 'Graph' object has no attribute 'node'

I have bellow python code to build knn graph but I have an error: AttributeError: 'Graph' object has no attribute …

python graph cluster-computing networkx knn
How to best implement K-nearest neighbours in C# for large number of dimensions?

I'm implementing the K-nearest neighbours classification algorithm in C# for a training and testing set of about 20,000 samples each, and 25 …

c# optimization classification knn