Skip to content

Commit

Permalink
Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
teubert committed Jul 30, 2024
1 parent 4d18e5b commit 3483045
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/progpy/data_models/lstm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# National Aeronautics and Space Administration. All Rights Reserved.

from collections import abc
import importlib.util
from itertools import chain
import matplotlib.pyplot as plt
from numbers import Number
Expand Down Expand Up @@ -535,7 +536,10 @@ def from_data(cls, inputs, outputs, event_states=None, t_met=None, **kwargs):
params['normalization'] = (z_mean, z_std)

# Tensorflow is imported here to avoid importing it if not needed
from tensorflow import keras
try:
from tensorflow import keras
except ImportError as e:
raise ImportError("Missing required dependencies for data-driven model. ProgPy was imported directly. Instead import with datadriven dependencies using pip3 install progpy[datadriven] or pip3 install -e '.[datadriven]' (if installing from local copy)")

# Build model
callbacks = [ ]
Expand Down

0 comments on commit 3483045

Please sign in to comment.