@@ -203,11 +203,9 @@ def _generate_and_preprocess_model_data( # type: ignore
203203 date_data = X [self .date_column ]
204204 channel_data = X [self .channel_columns ]
205205
206- self .coords_mutable : dict [str , Any ] = {
207- "date" : date_data ,
208- }
209206 coords : dict [str , Any ] = {
210207 "channel" : self .channel_columns ,
208+ "date" : date_data ,
211209 }
212210
213211 new_X_dict = {
@@ -349,20 +347,17 @@ def build_model(
349347 self ._generate_and_preprocess_model_data (X , y )
350348 with pm .Model (
351349 coords = self .model_coords ,
352- coords_mutable = self .coords_mutable ,
353350 ) as self .model :
354351 channel_data_ = pm .Data (
355352 name = "channel_data" ,
356353 value = self .preprocessed_data ["X" ][self .channel_columns ],
357354 dims = ("date" , "channel" ),
358- mutable = True ,
359355 )
360356
361357 target_ = pm .Data (
362358 name = "target" ,
363359 value = self .preprocessed_data ["y" ],
364360 dims = "date" ,
365- mutable = True ,
366361 )
367362 if self .time_varying_intercept | self .time_varying_media :
368363 time_index = pm .Data (
@@ -443,7 +438,6 @@ def build_model(
443438 name = "control_data" ,
444439 value = self .preprocessed_data ["X" ][self .control_columns ],
445440 dims = ("date" , "control" ),
446- mutable = True ,
447441 )
448442
449443 control_contributions = pm .Deterministic (
@@ -461,7 +455,6 @@ def build_model(
461455 self .date_column
462456 ].dt .dayofyear .to_numpy (),
463457 dims = "date" ,
464- mutable = True ,
465458 )
466459
467460 def create_deterministic (x : pt .TensorVariable ) -> None :
@@ -546,7 +539,6 @@ def channel_contributions_forward_pass(
546539 """
547540 coords = {
548541 ** self .model_coords ,
549- ** self .coords_mutable ,
550542 }
551543 with pm .Model (coords = coords ):
552544 pm .Deterministic (
0 commit comments