Generic implementation for clustering with deep learning : representation learning (DNN) + clustering