Hi,
I am new to mongodb.
Lets say i have a collection of documents and i have a new document which is not in the collection , lets call it X.
1.I want to run the K-Means Algorithm on the collection.
2. I want to calculate to which cluster X is most close to(Lets say the metric is cosine similarity or other known metric).
3. I want to return all the documents which are in the specific cluster i found in 2.
Can i do that on mongoDB?