pyro-ppl/pyro

Add order parameter to spline_coupling helper function

Open

#3,417 opened on Jan 24, 2025

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (981 forks)batch import
help wantedusability

Repository metrics

Stars
 (8,211 stars)
PR merge metrics
 (Avg merge 10d 19h) (1 merged PR in 30d)

Description

The spline_coupling helper function currently lacks an order parameter, which would allow users to specify the spline's order (linear or quadratic). This is inconsistent with the SplineCoupling class, which already supports the order parameter.

Adding the order parameter to the spline_coupling helper function will improve flexibility for users.

Example of the modified spline_coupling function:

Image

Contributor guide