Skip to main content

A stable version of the tfcasualimpact package

Project description

tfp_causalimpact_customized

A stable multi-chain 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.13.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.13-py3-none-any.whl (68.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.13.tar.gz
Algorithm Hash digest
SHA256 746c8573805f77e40ffd7e6f2c5d08041c46ad011ffb899d501810aff7d255f7
MD5 127a8fb9d9246125e99c2b8e35b0e4f5
BLAKE2b-256 2263d3d24a7822499f630cdf90c2843ae9ebfefea9568d16e97541cf0f19b38c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 5a44f32b27bc384fea323941854d5e195cd91ceac8ce82a2e3f9a5aad7ebaec9
MD5 0d76feb794cf6e3fc1d158f67c5a0faf
BLAKE2b-256 364a21e4e173b7c99badb2e30c77ed08207ada066ee4667e5d40ec04b11f76e8

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