Missing a reference to hparam dict when calculating the mean of costs for a particular hparam value