Added x as a parameter to all loss-related functions
Added weighted loss function to EdgeFeatureGraphCRF