a_i is an indicator in the index i. if for the i’s cordinate the gt is true a_i = 1 .
As I see it w_pos is determine the cost/punishmentof miss-predicting positive label and w_neg is the punishment for miss-predicting negative label