-
Notifications
You must be signed in to change notification settings - Fork 756
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
Add new useful plot features #1544
base: master
Are you sure you want to change the base?
Conversation
…lots in different formats (e.g., PNG, JPEG, PDF); Introduced additional statistics generation for improved performance analysis;
…lots in different formats (e.g., PNG, JPEG, PDF); Introduced additional statistics generation for improved performance analysis.
Reformat via black https://pypi.org/project/black/ |
output_dir (string): If ``None``, use the current working directory. | ||
output_dir (string): If None, use the current working directory. | ||
save_format (string): File format for saving the plot (default is "png"). | ||
generate_statistics (bool): Set True to generate additional statistics (average, standard deviation, etc.). |
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.
max 88 characters per line
and testing points. | ||
isplot (bool): Set ``True`` (default) to plot loss, metric, and the predicted | ||
solution. | ||
loss_history: LossHistory instance. The first variable returned from Model.train(). |
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.
Why modifying this?
|
||
plot_loss_history(loss_history, fname=os.path.join(output_dir, f"custom_style_loss.{save_format}"), plot_style=plot_style) | ||
|
||
if generate_statistics: |
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.
Why are these statistics useful?
Added the ability to customize plot style; Added support for saving plots in different formats (e.g., PNG, JPEG, PDF); Introduced additional statistics generation for improved performance analysis.