updated the way hierarchical F1 is calculated. this previous version was incorrect!!