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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.9.tar.gz
Algorithm Hash digest
SHA256 6afed5d0f5807d6e548ec7d6b9f383b7e7b7be18b7ef1e9ac81f60d0768d6280
MD5 dc7ce2dedde069ac02e9673bd5b10329
BLAKE2b-256 1ea73c42d74d94b6ff2302957488e47f36086e5d2b1877ce414008698d0c018d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 08a230f7bab04ff185ca65079c12aa025242539abd00d939c9c6a41c4962afc1
MD5 0d34a99307ce0c68d0e2a82392804d9b
BLAKE2b-256 dcb0c396cb16757d6d03aa78d9b659e42c1951f4c82a36ade6718033605b982e

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