damast.cli.data_visualize#

Visualize a pipeline - either its structure, or what a run of it did to the data.

Which of the two is drawn follows from the input file: a saved pipeline (*.damast.ppl) has a structure to render, a run’s statistics report (*.stats.yaml, written by damast.core.dataprocessing.DataProcessingPipeline.save_stats) has per-step numbers to plot.

Attributes#

Classes#

DataVisualizeParser

Argparser for the 'viz' subcommand.

Functions#

resolve_kind(→ str)

Decide what the given file holds, from its name.

Module Contents#

damast.cli.data_visualize._EXTENSIONS#
damast.cli.data_visualize._FORMATS#
damast.cli.data_visualize.resolve_kind(filename: pathlib.Path) → str#

Decide what the given file holds, from its name.

Parameters:

filename – The file to visualize

Returns:

"stats" or "pipeline"

Raises:

ValueError – If the suffix matches neither

class damast.cli.data_visualize.DataVisualizeParser(parser: argparse.ArgumentParser)#

Bases: damast.cli.base.BaseParser

Argparser for the ‘viz’ subcommand.

description = 'damast viz - visualize a pipeline or a run of it'#
execute(args)#