Overview¶
The default model parametrization is the one described in Section 4.4 of Hand et al. 2017. See this section for a detailed discussion of the free and constrained parameters, as well as the priors used during parameter fitting. There are 13 free parameters that are varied during the fitting procedure.
The default set of parameters can be easily loaded from a
GalaxySpectrum
object as
In [1]: from pyRSD.rsd import GalaxySpectrum
In [2]: model = GalaxySpectrum()
In [3]: params = model.default_params()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-20168f551e3a> in <module>()
----> 1 params = model.default_params()
~/checkouts/readthedocs.org/user_builds/pyrsd/conda/latest/lib/python3.6/site-packages/pyRSD/rsd/power/gal/power_gal.py in default_params(self)
128 """
129 from pyRSD.rsdfit.theory import GalaxyPowerParameters
--> 130 return GalaxyPowerParameters.from_defaults(model=self)
131
132 #---------------------------------------------------------------------------
~/checkouts/readthedocs.org/user_builds/pyrsd/conda/latest/lib/python3.6/site-packages/pyRSD/rsdfit/theory/base.py in from_defaults(cls, model, extra_params)
155 """
156 # initialize an empty class
--> 157 params = cls()
158
159 # add extra parameters
~/checkouts/readthedocs.org/user_builds/pyrsd/conda/latest/lib/python3.6/site-packages/pyRSD/rsdfit/parameters/parameterset.py in __init__(self, *args, **kwargs)
35 def __init__(self, *args, **kwargs):
36
---> 37 kwargs['asteval'] = lmfit.asteval.Interpreter(symtable=SmartSymTable(self))
38 super(ParameterSet, self).__init__(*args, **kwargs)
39 self._prepared = False
AttributeError: module 'lmfit' has no attribute 'asteval'
In [4]: print(params)