jaungiers / LSTM-Neural-Network-for-Time-Series-Prediction

LSTM built using Keras Python package to predict time series steps and sequences. Includes sin wave and stock market data
GNU Affero General Public License v3.0
4.83k stars 1.96k forks source link

Run the model #78

Open AlexQT90 opened 4 years ago

AlexQT90 commented 4 years ago

Hello,

how run the trained model from saved_models? Regards,

VincieD commented 4 years ago

Look into core/model.py - search for load_model ;) class Model(): """A class for an building and inferencing an lstm model"""

def __init__(self):
    self.model = Sequential()

def load_model(self, filepath):
    print('[Model] Loading model from file %s' % filepath)
    self.model = load_model(filepath)