added f score function to sampling_helper (needs to be moved)