trixi.logger

experiment

ExperimentLogger

PytorchExperimentLogger

file

NumpyPlotFileLogger

PytorchPlotFileLogger

TextFileLogger

message

SlackMessageLogger

TelegramMessageLogger

plt

NumpySeabornPlotLogger

NumpySeabornImagePlotLogger

tensorboard

TensorboardXLogger

PytorchTensorboardXLogger

visdom

NumpyVisdomLogger

PytorchVisdomLogger

AbstractLogger

class trixi.logger.abstractlogger.AbstractLogger(*args, **kwargs)[source]

Bases: object

Abstract interface for visual logger.

process_params(f, *args, **kwargs)[source]

Implement this to handle data conversions in your logger.

Example: Implement logger for numpy data, then implement torch logger as child of numpy logger and just use the process_params method to convert from torch to numpy.

show_barplot(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store a barplot

show_image(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store an image

show_lineplot(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store a lineplot

show_piechart(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store a piechart

show_scatterplot(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store a scatterplot

show_text(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store a text

show_value(*args, **kwargs)[source]

Abstract method which should handle and somehow log/ store a value

trixi.logger.abstractlogger.convert_params(f)[source]

Decorator to call the process_params method of the class.

trixi.logger.abstractlogger.threaded(f)[source]

Decorator to run the process in an extra thread.

CombinedLogger

class trixi.logger.combinedlogger.CombinedLogger(*loggers)[source]

Bases: object

A Logger which can combine all other logger and if called calls all the sub loggers

trixi.logger.combinedlogger.create_function(self, sub_methods)[source]