def validate_basic_smoother_resid():
x, y = sort_data(*smoother_friedman82.build_sample_smoother_problem_friedman82())<EOL>plt.figure()<EOL>for span in smoother.DEFAULT_SPANS:<EOL><INDENT>my_smoother = smoother.perform_smooth(x, y, span)<EOL>_friedman_smooth, resids = run_friedman_smooth(x, y, span)  <EOL>plt.plot(x, my_smoother.cross_validated_residual, '<STR_LIT>',<EOL>label='<STR_LIT>'.format(span))<EOL>plt.plot(x, resids, '<STR_LIT>', label='<STR_LIT>'.format(span))<EOL><DEDENT>finish_plot()<EOL>
Compare residuals.