You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have a way for returning a dictionary of required parameters (keys and values) from a likelihood object. At the moment, I can return a list of required parameter names by:
fromfirecrown.likelihood.likelihoodimportload_likelihood_from_module_type# this is a likelihood from firecrown's examples:importdes_y1_3x2pt_PTlikelihood, tools=load_likelihood_from_module_type(des_y1_3x2pt_PT, None)
list(likelihood.required_parameters().get_params_names())
Although these values are set inside the likelihood, I could not find a way of accessing them.
Is this possible?
This would be useful for the blinding infrastructure as it would eliminate requiring the user to provide this dictionary (and avoid the user providing a dictionary that may be discrepant with what's on the likelihood already).
The text was updated successfully, but these errors were encountered:
This is closed by PR #420. The Likelihood class method has a method required_parameters that returns a RequiredParameters object containing the names and values of the parameters.
Note that ModelingTools also has a method required_parameters that returns a RequiredParameters object containing all the parameters of the models.
The RequiredParameters class has a method get_default_values that returns a dictionary with the names and default values of the parameters.
We will add a tutorial that includes a demonstration of these features.
This feature has been merged into the master branch. It is not yet part of a tagged release, but will become part of Firecrown 1.8.0 (modulo any tweaking in the interface that might occur before the release is cut).
Hi Firecrowd,
It would be great to have a way for returning a dictionary of required parameters (keys and values) from a likelihood object. At the moment, I can return a list of required parameter names by:
which returns me:
Although these values are set inside the likelihood, I could not find a way of accessing them.
Is this possible?
This would be useful for the blinding infrastructure as it would eliminate requiring the user to provide this dictionary (and avoid the user providing a dictionary that may be discrepant with what's on the likelihood already).
The text was updated successfully, but these errors were encountered: