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.17.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.17-py3-none-any.whl (68.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.17.tar.gz
Algorithm Hash digest
SHA256 d10ddfdab3f98bdeb46f51ff30bb8704cba2837d083a93b11f4a4ce5d7499d4b
MD5 373b1f0438fce3c3e941bd7c04b0cdef
BLAKE2b-256 0a1c002472f789d5d0a431e1983635ec482bb545a4918b2e558454fb3a057720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 06d994c7772c41800d512a45b5c725a968a67a65afb651ddf2e8f69bdadb1d4d
MD5 3aaeefe6ef500e321149cffcd56c3d6d
BLAKE2b-256 a123c000e8e281fc91b565849f83bcbda02468ede614d987e7e8d720565e8f21

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