Skip to content

Conversation

@fisher75
Copy link

@fisher75 fisher75 commented Nov 3, 2023

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.

…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.
@lululxvi
Copy link
Owner

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.).
Copy link
Owner

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().
Copy link
Owner

@lululxvi lululxvi Nov 22, 2023

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:
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants