A stable version of the tfcasualimpact package
Project description
tfp_causalimpact_customized
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
- Stability: Resolved the issue of results changing from run to run, ensuring consistent outcomes. See Result change from run to run in tfcausalimpact.
Getting Started
- Installation
uv add tfp_causalimpact_customized
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfp_causalimpact_customized-0.2.2.tar.gz.
File metadata
- Download URL: tfp_causalimpact_customized-0.2.2.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9df0cf8d445e977803f16c10794c154a853342ebaf82d39d4e3ffa548370deb0
|
|
| MD5 |
d6089977b30b35e7055901add3274626
|
|
| BLAKE2b-256 |
e5cad6186e7ccec21bf82dc1734489a7b3dc1cc6bade042a462c01c2a0c4fe8a
|
File details
Details for the file tfp_causalimpact_customized-0.2.2-py3-none-any.whl.
File metadata
- Download URL: tfp_causalimpact_customized-0.2.2-py3-none-any.whl
- Upload date:
- Size: 67.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c8588fc4e6fe24f409dbe813ce4f3d1306d04480ff4709abf1ca34f0cb14cae
|
|
| MD5 |
0fbbef247fc5a45f83f4c11535b4d599
|
|
| BLAKE2b-256 |
6cb655ac0d4326f48aeacd0b32b9f5a2f298e526400df3a51425ab6fedb6505a
|