Added function for computing the relavance of each test instance