Skip to main content

A stable version of the tfcasualimpact package

Project description

tfp_causalimpact_customized

Rebuilt of TFP CausalImpact

Features

  • Added convergence tests to the Gibbs sampling process.

  • Improved summary round to 3 digits

  • Added support for Japanese fonts and characters in Matplotlib plots.

  • Enhanced compatibility with Japanese data visualization requirements.

  • Enhanced plotting capabilities for chain convergence visualizations.

  • Enhancements Over tfcausalimpact tfcausalimpact

Getting Started

  1. Installation
    uv add tfp_causalimpact_customized
    
  2. Plot options (Currently only Matplotlib is supported) Important:y_formatter_unit must be a dictionary with the keys that are the same as legend_labels y_labels.
plot_options = {
    'chart_width': 1000,
    'chart_height': 200,
    'x_label': 'Date',
    'y_labels': ['Observed1', 'Pointwise Effect1', 'Cumulative Effect1'],
    'title': 'Customized Matplotlib Plot',
    'title_font_size': 16,
    'axis_title_font_size': 14,
    'y_formatter': 'millions',
    'y_formatter_unit': {
        'Observed1': ' units',
        'Pointwise Effect1': ' effect',
        'Cumulative Effect1': ' total'
    },
    'legend_labels': {
        'mean': 'Average',
        'observed': 'Observed',
        'pointwise': 'Pointwise Effect',
        'cumulative': 'Cumulative Effect',
        'pre-period-start': 'Start of Pre-Period',
        'pre-period-end': 'End of Pre-Period',
        'post-period-start': 'Start of Post-Period',
        'post-period-end': 'End of Post-Period'
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tfp_causalimpact_customized-0.2.0.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tfp_causalimpact_customized-0.2.0-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file tfp_causalimpact_customized-0.2.0.tar.gz.

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dd6a53061c99315bd7435937c86f639ee230a04b2cac4be9c87e972e71414f78
MD5 e38bc60eec958cca9b95f9aea2f820f4
BLAKE2b-256 c5fb2aec507505b8de67b24371f3b8c2c5d34ebac7f0a2f7e9ef3860131cba4c

See more details on using hashes here.

File details

Details for the file tfp_causalimpact_customized-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09f76ec1effbd6a5c352e57046ecff6f745117d2d1f429b7181de0466affc6c0
MD5 1d14cee8fce5be8b4089baafbf96045b
BLAKE2b-256 6c200b76d57119f9b05aee697347b030a231865e5161505a42c92ad8c76fd52d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page