We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8579a14 commit 3101cdcCopy full SHA for 3101cdc
causalpy/experiments/synthetic_control.py
@@ -15,7 +15,7 @@
15
Synthetic Control Experiment
16
"""
17
18
-from typing import List, Union
+from typing import List, Optional, Union
19
20
import arviz as az
21
import numpy as np
@@ -561,7 +561,9 @@ def get_plot_data_bayesian(
561
562
return self.plot_data
563
564
- def _get_score_title(self, treated_unit: str, round_to=None):
+ def _get_score_title(
565
+ self, treated_unit: str, round_to: Optional[int] = None
566
+ ) -> str:
567
"""Generate appropriate score title for the specified treated unit"""
568
if isinstance(self.model, PyMCModel):
569
# Bayesian model - get unit-specific R² scores using unified format
0 commit comments