You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
While trying to train the neurall network for In-hospital mortality prediction this Error occurs:
==> training
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/jovyan/mimic3-benchmarks/mimic3models/in_hospital_mortality/main.py", line 157, in <module>
model.fit(x=train_raw[0],
File "/opt/conda/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/opt/conda/lib/python3.9/site-packages/keras/engine/data_adapter.py", line 984, in select_data_adapter
raise ValueError(
ValueError: Failed to find data adapter that can handle input: <class 'numpy.ndarray'>, (<class 'list'> containing values of types {"<class 'int'>"})
I've tried to convert x and y to np array, but still get this error
x=train_raw[0];
y=train_raw[1];
x = np.array(x)
y = np.array(y)
Did anyone had this error as well and found a solution or any ideas what could solve the problem?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello,
While trying to train the neurall network for In-hospital mortality prediction this Error occurs:
I've tried to convert x and y to np array, but still get this error
Did anyone had this error as well and found a solution or any ideas what could solve the problem?
Thanks in advance!
The text was updated successfully, but these errors were encountered: