File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -912,6 +912,16 @@ def independent_vars(self):
912
912
"""
913
913
return inputvars (self .unobserved_RVs )
914
914
915
+ @property
916
+ def disc_vars (self ):
917
+ """All the discrete variables in the model"""
918
+ return list (typefilter (self .value_vars , discrete_types ))
919
+
920
+ @property
921
+ def cont_vars (self ):
922
+ """All the continuous variables in the model"""
923
+ return list (typefilter (self .value_vars , continuous_types ))
924
+
915
925
@property
916
926
def test_point (self ) -> Dict [str , np .ndarray ]:
917
927
"""Deprecated alias for `Model.initial_point`."""
@@ -935,16 +945,6 @@ def initial_values(self) -> Dict[TensorVariable, np.ndarray]:
935
945
"""
936
946
return self ._initial_values
937
947
938
- @property
939
- def disc_vars (self ):
940
- """All the discrete variables in the model"""
941
- return list (typefilter (self .value_vars , discrete_types ))
942
-
943
- @property
944
- def cont_vars (self ):
945
- """All the continuous variables in the model"""
946
- return list (typefilter (self .value_vars , continuous_types ))
947
-
948
948
def set_initval (self , rv_var , initval ):
949
949
if initval is not None :
950
950
initval = rv_var .type .filter (initval )
You can’t perform that action at this time.
0 commit comments