Clean up variable vs parameter language. #885
Replies: 2 comments 2 replies
-
@jagerber48 I can see the room for confusion here, and the docs could probably be clearer. First, as you say "independent variables" are completely separate. These are really "extra user-specified data that the user wants to use to calculate the model or residual function". In many (most?) curve-fitting problems, one is modeling (and likely plotting) In When we say "variables" we usually try to mean "the truly variable parameters". So, That's all to say: there is a distinction between variable and Parameter. The docs might be better ;) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm working with the
Model
class but I think my comments apply more broadly other classes like minimizers etc. in lmfit.The model is very centered around the idea of
Parameter
s which carry information about initial guess values, vary flags, bounds etc. to configure the minimizer. The documentation seems to focus onParameter
s as well. However, in a few cases there seem to be references to "variables" which. I think variable is synonymous with parameter but it's not clear and can lead to confusion.The most striking example is that when model results are displayed there is a major heading titled "Variables" which appears over the table displaying information about all of the "parameters". This might lead new users to look for an attribute on the model results class like
results.variables
instead ofresult.params
. Likewise, there is an attribute on the results class callvar_names
which returns the names of the parameters.The idea here is to remove all references to "variables" and replace them with "parameters". At least wherever appropriate.
One point where variables and parameters are distinct is when it comes to independent variables. But here the two phrases actually refer to separate concepts, so using variables synonymously with parameters elsewhere servers only to further confuse the distinction between independent variables and parameters.
Beta Was this translation helpful? Give feedback.
All reactions