changed output_weights parameter instead of changing score output. Added check for another output_weights parameter