add smoothing line to results.png to improve readability #11535
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains a very small addition to the original code (+ 2 lines) and does not interfere with the machine learning process whatsoever. It adds a smoothing line on top of the original plots in the results.png. With this smoothing line I hope to improve plot readability for users and provide a better insight into when their model has the best fit, and where their model is under- or overfitted.
Before:
After:
🤖 Generated by Copilot at e32f5ee
Summary
📈🔬🎨
This pull request enhances the
plot_results
function inutils/plots.py
by applying a Gaussian filter to smooth the plot lines. This makes the results easier to visualize and compare.Walkthrough
gaussian_filter1d
function to smooth plot lines inplot_results
(link, link)🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Improvement in visualization of training results with smoothed lines.
📊 Key Changes
gaussian_filter1d
fromscipy.ndimage.filters
.plot_results
function using Gaussian filter.🎯 Purpose & Impact