Adaptive Learning of Smoothing Functions: Application to Electricity Load Forecasting