Enhanced Numerical Precision with Dynamic Significant Figures in FLAML Logs #1305
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 pull request introduces an enhancement to the numerical precision of output logs across various modules within the FLAML project by dynamically adjusting the number of significant figures displayed. This feature is crucial in contexts where precise numerical detail is necessary for comprehending subtle nuances in model performance.
Key improvements:
format_integers
ensures that numbers are formatted to a dynamic number of significant figures based on the first non-zero digit after the decimal point, with a minimum threshold of four significant figures.This update aligns with FLAML's ongoing efforts to enhance usability and clarity in model evaluation and tuning processes.
Related Issue: #1272
Thank you for considering this enhancement. I believe it will make a significant difference in the usability and accuracy of our logging procedures.