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.34.tar.gz (967.8 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.34-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.1.34.tar.gz
Algorithm Hash digest
SHA256 04e1bcec6d46fcabe7e2e44a0407fb146e46b36ee34c9ff8dc6ec4f5b822b201
MD5 febad83a6331890826e976b2fa1e43cd
BLAKE2b-256 5c280426b212bb96be54e488fb9279ca770ac93644a34d0efc2db35d4d09f54d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfp_causalimpact_customized-0.1.34-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bd30c4c457270a531138e3df1044a20a8c2e9030896a4d00ebcabcdb06ccbc
MD5 2728239fa544a68da26e24336f93cf41
BLAKE2b-256 5ac7295ad53b66922684a1061aea27902630ed2ea216432f8c57f53e87b388d4

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