private double flipLabel(double nonPredictedLabel){
  return 1.0d - nonPredictedLabel;
}

private double flipLabel ( double nonPredictedLabel ) { return 1.0d - nonPredictedLabel ; }
works only for boolean labels and needs to be improved in case of changing rapidminer core classes .
