Closed exalate-issue-sync[bot] closed 1 year ago
Wendy Wong commented: The second part of this Jira will be to implement support when number of knots < spline_degree.
JIRA Issue Details
Jira Issue: PUBDEV-8836 Assignee: Wendy Wong Reporter: Wendy Wong State: Resolved Fix Version: 3.38.0.3 Attachments: N/A Development PRs: Available
Wendy Wong commented: # For bs = 0, cubic spline, minimum number of knots is 3, otherwise there will be problem with matrix inversion and the code won’t run;
For bs = 1, thin-plate, minimum number of knots is M+1 where M is generated from some formula. I have no control here on how k must be set;
For bs = 2, minimum number of knots is N=2. When you you set N=2, the number of basis function will change depending on the order you choose for the splines:
GAM always need knots, however, for I-splines, it can have only one basis function if you set number of knots = 2 and order = 1.