Write data to csv and predict cluster of new data