@@ -429,7 +429,7 @@ def _determine_summary_loss(self, loss_fun):
429429
430430 # Throw, if summary loss without a summary network provided
431431 if loss_fun is not None and self .summary_net is None :
432- raise ConfigurationError (' You need to provide a summary_net if you want to use a summary_loss_fun.' )
432+ raise ConfigurationError (" You need to provide a summary_net if you want to use a summary_loss_fun." )
433433
434434 # If callable, return provided loss
435435 if loss_fun is None or callable (loss_fun ):
@@ -1214,19 +1214,3 @@ def _get_local_global(self, input_dict, **kwargs):
12141214 local_summaries = input_dict .get ("direct_local_conditions" )
12151215 global_summaries = input_dict .get ("direct_global_conditions" )
12161216 return local_summaries , global_summaries
1217-
1218-
1219- class SingleModelAmortizer (AmortizedPosterior ):
1220- """Deprecated class for amortizer posterior estimation."""
1221-
1222- def __init_subclass__ (cls , ** kwargs ):
1223- warn (f"{ cls .__name__ } will be deprecated. Use `AmortizedPosterior` instead." , DeprecationWarning , stacklevel = 2 )
1224- super ().__init_subclass__ (** kwargs )
1225-
1226- def __init__ (self , * args , ** kwargs ):
1227- warn (
1228- f"{ self .__class__ .__name__ } will be deprecated. Use `AmortizedPosterior` instead." ,
1229- DeprecationWarning ,
1230- stacklevel = 2 ,
1231- )
1232- super ().__init__ (* args , ** kwargs )
0 commit comments