supposed you want to find the weight of a problem which you don't know it output. (eg death) in other words you know the contributing factors to death but you cannot determine the weight . how do you fine th optimal or sub optimal weight of a cost function?