PTMLocScale.build_graph()

PTMLocScale.build_graph()#

PTMLocScale.build_graph(optimize_params=None, position=None, optimize_start_values=True, optimize_normalization=True, maxiter=10000, **optim_args)[source]#

Builds the model graph.

Parameters:
  • *optimize_params (Optional[list[list[str]]]) – The parameters to optimize. If not specified, all parameters are optimized. The values supplied here should be lists of strings. Each string should be the name of a parameter in the model. Each list is a group of parameters that should be optimized together while holding the remaining parameters of the model fixed. (default: None)

  • position (Optional[dict[str, Any]]) – Dictionary of model parameter names and values to use as starting values. Values of parameters included in the position will not be included in pre-optimization. (default: None)

  • optimize_start_values (bool) – Whether to optimize the start values of the model using stochastic gradient descent. (default: True)

  • optimize_normalization (bool) – Whether to include the shape parameters in the optimizaiton of start values. (default: True)

  • maxiter (int) – Additional arguments to pass to the optimizer optmize_parameter(). (default: 10000)

  • **optim_args – Additional arguments to pass to the optimizer optmize_parameter().

Return type:

Model