A Combined Offline-Online Algorithm for Hodgkin-Huxley Neural Networks