A mixture-of-experts approach to adaptive estimation