When attempting to fit an LSTM model to my data, I get the following error:
Error in py_call_impl(callable, dots$args, dots$keywords) : TypeError: 'NoneType' object is not callable
Here is my code:
model %>% fit(x_train, y_train, epochs = 50, batch_size=batch_size, verbose=1, shuffle=FALSE)
Funny thing is, defining and compiling the model works. I have also tried installing "reticulate" from github.
(Edit) Here is the full error message:
Error in py_call_impl(callable, dots$args, dots$keywords) : ValueError: in user code: /cloud/project/myenv/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:855 train_function * return step_function(self, iterator) /cloud/project/myenv/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py:845 step_function ** outputs = model.distribute_strategy.run(run_step, args=(data,)) /cloud/project/myenv/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:1285 run return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs) /cloud/project/myenv/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:2833 call_for_each_replica return self._call_for_each_replica(fn, args, kwargs) /cloud/project/myenv/lib/python3.8/site-packages/tensorflow/python/distribute/distribute_lib.py:3608 _call_for_each_replica return fn(*args, **kwargs) /cloud/project/myenv/lib/python3.8/site-packages/tensorflow/pytho