Skip to main content

A stable version of the tfcasualimpact package

Project description

tfp_causalimpact_customized

Features

Improved summary round to 3 digits

Matplotlib Japanese Support

  • Added support for Japanese fonts and characters in Matplotlib plots.
  • Enhanced compatibility with Japanese data visualization requirements.

Improved Matplotlib Plots

  • Enhanced plotting capabilities for clearer and more informative visualizations.
  • Customized plot styles and themes to better represent causal impact analysis.

Comparison with tfcausalimpact

Enhancements Over tfcausalimpact

  • Stability: Resolved the issue of results changing from run to run, ensuring consistent outcomes. See Result change from run to run in tfcausalimpact.
  • Performance: Optimized performance for faster computations and larger datasets.
  • Customization: Increased flexibility in model customization and parameter tuning.

Fixed Issues

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.1.33.tar.gz (139.3 kB 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.1.33-py3-none-any.whl (66.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.1.33.tar.gz
Algorithm Hash digest
SHA256 d6d7c896ebe1d3c7b9f9e632c19260d4539eee9be11288b6a816cb6d7ef4a2b8
MD5 36c5a8f615edbd446d07ed574249f4a3
BLAKE2b-256 8f3b1217d5200c48f9e204f4e92ccc0a099ca343d6717ed6c8f6cca1b1565e8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 f98f117be269da99209a4cf52fbae4e777700d58d54a5f2f5cba79e572ca2e3a
MD5 6dffd8716622503e407b67547b6f7e32
BLAKE2b-256 d066ebca91292969caad3c04ea1ad49584a3ae9bbec29e4b4d2860319ed88eab

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