Is there a Python equivalent to the smooth.spline function in R

前端 未结 3 1938
萌比男神i
萌比男神i 2021-02-07 07:06

The smooth.spline function in R allows a tradeoff between roughness (as defined by the integrated square of the second derivative) and fitting the points (as defined by summing

3条回答
  •  萌比男神i
    2021-02-07 07:49

    From research on google, I concluded that

    By contrast, the smooth.spline in R allows having knots at all the x values, without necessarily having a wiggly curve that hits all the points -- the penalty comes from the second derivative.

提交回复
热议问题