ace.supersmoother module
A variable-span data smoother.
This uses the fixed-span smoother to determine a changing optimal span for the data based on cross-validated residuals. It is an adaptive smoother that requires several passes over the data.
The SuperSmoother provides a mechanism to evaluate the conditional expectations in the ACE algorithm.
Based on [Friedman82].
Example:
s = SuperSmoother()
s.specify_data_set(x, y, sort_data = True)
s.compute()
smoothed_y = s.smooth_result
- class ace.supersmoother.SuperSmoother[source]
Bases:
SmootherVariable-span smoother.
- class ace.supersmoother.SuperSmootherWithPlots[source]
Bases:
SuperSmootherAuxiliary subclass for researching/understanding the SuperSmoother.