-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Console Output Readability #14
Improve Console Output Readability #14
Conversation
Improve console output readability with enhanced print formatting using colorama
improve_console_output.py is looking correct, please try to integrate it with core package so it'll reflect in the logs |
custom logger that formats log messages with colors using colorama Example usage of it in Core Functions: # model_analysis.py from custom_logger import setup_logger # Initialize logger logger = setup_logger('ModelAnalysis') def analyze_model(accuracy): logger.info("Analyzing model...") logger.info(f"Accuracy: {accuracy:.3f}") def display_error(message): logger.error(f"Error: {message}") def display_warning(message): logger.warning(f"Warning: {message}") def main(): accuracy = 0.91234 # Example accuracy value analyze_model(accuracy) # Example usage of other log functions display_error("An error occurred while loading the model.") display_warning("This model may take a long time to train.") if __name__ == "__main__": main()
Integrate enhanced print formatting into core package with custom logger
please check for the updated pull request |
Hey @AnujSaha0111 efforts appreciated We're expecting something like this: from colorama import Fore, Style
# Before
print("Analyzing model...")
# After
print(f"{Fore.BLUE}Analyzing model...{Style.RESET_ALL}") You may remove the newly added codes, and just enhance the existing logic codes Please reach out for any doubts |
Enhanced console output readability with colorama
updated the file with Enhanced console output readability with colorama |
Please don't create any new file! Have the changes in current core package files only! |
made changes in core.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code is looking good!
Please remove 'self._analyze_models()' this line with as it was previously ie. 'self.model_comparison_results = self._compare_models()'
I'll merge it just do this minor fix
updated the core.py as per asked |
Check for the core.py after the commit message of 'Final Update core.py' |
This PR has been resolved at #21 |
Improve console output readability with enhanced print formatting using colorama