finer grained averaging
ende hyperparameter fitting part moved out