Fix the plot view layout.
Fix label metric calculation.
Move LabelPartitioner into a separate file.