Fix averaging of cross_validation scores

also some updates of using kmeans