Closed
Description
Describe the bug
Error with lstm tests likely due to Tensorflow version.
======================================================================
ERROR: test_full_lstm_model (tests.test_examples.TestExamples.test_full_lstm_model)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/michellely/Documents/GitHub/progpy/tests/test_examples.py", line 22, in test
ex.run_example()
File "/Users/michellely/Documents/GitHub/progpy/examples/full_lstm_model.py", line 90, in run_example
m2 = LSTMThrownObject.from_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/michellely/Documents/GitHub/progpy/src/progpy/data_models/lstm_model.py", line 591, in from_data
history = model.fit(
^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py", line 123, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keras/src/trainers/compile_utils.py", line 234, in _build_metrics_set
raise ValueError(
ValueError: Expected all entries in the `metrics` list to be metric objects. Received instead:
metrics=[['mae']]
Relevant Requirements
Versions of Tensorflow
To Reproduce
Steps to reproduce the behavior:
- Use pre-release version
- Run tests
python -m tests
Expected behavior
Tests pass.
Desktop (please complete the following information):
- OS: macOS
- Python Version: 3.12.2