change basis_metod to basis_sampling and clustered to kmeans