I have a collection of news articles. I have performed tf-idf operations on them. I am using python as programming language so it was just the use of TF-IDF vectorizer function. I now have the document's tfidf representation. My aim is to cluster news articles using Particle swarm optimization.
As read in following research papers,
the input of the PSO algorithm should be an array representing document. In my case I am trying to use tf-idf as input. So, how can i use the result of tf-idf as input for Particle Swarm optimization? Particle Swarm optimization is a optimization algorithm. So while clustering, I am going to optimize or minimize distance between cluster's centroid and data points belonging to that cluster. Can anybody provide me a solution or hint towards something?