@@ -886,27 +886,11 @@ def unobserved_value_vars(self):
886
886
887
887
return vars + untransformed_vars + deterministics
888
888
889
- @property
890
- def disc_vars (self ):
891
- warnings .warn (
892
- "Model.disc_vars has been deprecated. Use Model.discrete_value_vars instead." ,
893
- FutureWarning ,
894
- )
895
- return self .discrete_value_vars
896
-
897
889
@property
898
890
def discrete_value_vars (self ):
899
891
"""All the discrete value variables in the model"""
900
892
return list (typefilter (self .value_vars , discrete_types ))
901
893
902
- @property
903
- def cont_vars (self ):
904
- warnings .warn (
905
- "Model.cont_vars has been deprecated. Use Model.continuous_value_vars instead." ,
906
- FutureWarning ,
907
- )
908
- return self .continuous_value_vars
909
-
910
894
@property
911
895
def continuous_value_vars (self ):
912
896
"""All the continuous value variables in the model"""
@@ -935,18 +919,6 @@ def unobserved_RVs(self):
935
919
"""
936
920
return self .free_RVs + self .deterministics
937
921
938
- @property
939
- def RV_dims (self ) -> Dict [str , Tuple [Union [str , None ], ...]]:
940
- """Tuples of dimension names for specific model variables.
941
-
942
- Entries in the tuples may be ``None``, if the RV dimension was not given a name.
943
- """
944
- warnings .warn (
945
- "Model.RV_dims is deprecated. Use Model.named_vars_to_dims instead." ,
946
- FutureWarning ,
947
- )
948
- return self .named_vars_to_dims
949
-
950
922
@property
951
923
def coords (self ) -> Dict [str , Union [Tuple , None ]]:
952
924
"""Coordinate values for model dimensions."""
@@ -1090,18 +1062,6 @@ def initial_point(self, random_seed: SeedSequenceSeed = None) -> Dict[str, np.nd
1090
1062
fn = make_initial_point_fn (model = self , return_transformed = True )
1091
1063
return Point (fn (random_seed ), model = self )
1092
1064
1093
- @property
1094
- def initial_values (self ) -> Dict [TensorVariable , Optional [Union [np .ndarray , Variable , str ]]]:
1095
- """Maps transformed variables to initial value placeholders.
1096
-
1097
- Keys are the random variables (as returned by e.g. ``pm.Uniform()``) and
1098
- values are the numeric/symbolic initial values, strings denoting the strategy to get them, or None.
1099
- """
1100
- warnings .warn (
1101
- "Model.initial_values is deprecated. Use Model.rvs_to_initial_values instead."
1102
- )
1103
- return self .rvs_to_initial_values
1104
-
1105
1065
def set_initval (self , rv_var , initval ):
1106
1066
"""Sets an initial value (strategy) for a random variable."""
1107
1067
if initval is not None and not isinstance (initval , (Variable , str )):
0 commit comments