GenerateReport#
- class causalpy.steps.report.GenerateReport[source]#
Pipeline step that generates an HTML report from pipeline results.
- Parameters:
include_plots (
bool) – Whether to include diagnostic plots in the report. Covers both the experiment plot and any figures the sensitivity checks attached to their results, so turning it off leaves the report imageless.include_effect_summary (
bool) – Whether to include the effect summary section.include_sensitivity (
bool) – Whether to include sensitivity analysis results.output_file (
str|Path|None) – If provided, write the HTML report to this file.
Examples
>>> import causalpy as cp >>> step = cp.GenerateReport( ... include_plots=True, output_file="report.html" ... )
Methods
GenerateReport.run(context)Generate the HTML report and store it in the context.
GenerateReport.validate(context)GenerateReport has no strict prerequisites; it gracefully handles missing data.
- __init__(include_plots=True, include_effect_summary=True, include_sensitivity=True, output_file=None)[source]#
- classmethod __new__(*args, **kwargs)#