Source code for deepcausalmmm.exceptions

"""
Custom exceptions for DeepCausalMMM package.
"""

[docs] class DeepCausalMMMError(Exception): """Base exception for DeepCausalMMM package.""" pass
[docs] class DataError(DeepCausalMMMError): """Raised when there are issues with data loading or preprocessing.""" pass
[docs] class ModelError(DeepCausalMMMError): """Raised when there are issues with model initialization or training.""" pass
[docs] class ConfigurationError(DeepCausalMMMError): """Raised when there are issues with configuration parameters.""" pass
[docs] class ValidationError(DeepCausalMMMError): """Raised when data validation fails.""" pass
[docs] class TrainingError(DeepCausalMMMError): """Raised when model training fails.""" pass
[docs] class InferenceError(DeepCausalMMMError): """Raised when model inference/prediction fails.""" pass
[docs] class BayesianNetworkError(DeepCausalMMMError): """Raised when Bayesian network operations fail.""" pass
[docs] class AdstockError(DeepCausalMMMError): """Raised when adstock transformation fails.""" pass
[docs] class SaturationError(DeepCausalMMMError): """Raised when saturation transformation fails.""" pass
[docs] class ScalingError(DeepCausalMMMError): """Raised when data scaling operations fail.""" pass
[docs] class MissingDependencyError(DeepCausalMMMError): """Raised when required dependencies are not available.""" pass