PTMLocScale.new_from_graph()

PTMLocScale.new_from_graph()#

PTMLocScale.new_from_graph(graph, knot_prob_levels=(0.01, 0.99))[source]#

Given a Liesel model graph, this creates a new PTMLocScale with updated knots.

Parameters:
  • graph (Model) – The liesel model graph to base the new model on.

  • knot_prob_levels (tuple[float, float]) – At which probability levels of the observed residuals in graph should the new minimum and maximum knots be placed. (default: (0.01, 0.99))

Return type:

PTMLocScale

Returns:

  • A new model instance with updated knots. All prior and hyperprior specifications

  • for the transformation and the location and scale terms are copied from

  • the original model.