Closed rmnldwg closed 10 months ago
Is this solved by set_state_by_lnl
? Or do you wan a different function that takes care of this task.
Right now the parameters are still set by a modified check_and_assign function
Edit: sorry for the wrong interpretation
No, we basically need a function similar to set_state_by_lnl
, but instead of assigning states to nodes, it would assign spread probabilities to edges.
Right now, it is sometimes confusing to assign the correct parameters, because they are simply passed in one - sometimes rather long - list to the model. It would be great to have a system of assigning spread parameters by keyword.
For example, if we had a method
assign_parameters
in theUnilateral
class, we could allow setting parameters like this:The names of the keywords could be auto-computed from the names of the tumor and the LNLs. In this example, the tumor would be called
T
and one of the LNLsIII
. Hence, the keyword to assign to theEdge
instance between the two respectiveNode
instances would be calledspread_T_to_III
.This has several advantages:
emcee
package has a couple of quality-of-life features that we can use if parameters are assigned by keyword.