How fast can a threshold gate learn