Skip to content

Classification using error #47

@doheon114

Description

@doheon114

Thanks for good service. I found some error trying using this code.

Traceback (most recent call last):
File "/home/work/.LVEF/ecg-lvef-prediction/NeurIPS2023-One-Fits-All/Classification/src/main.py", line 309, in
main(config)
File "/home/work/.LVEF/ecg-lvef-prediction/NeurIPS2023-One-Fits-All/Classification/src/main.py", line 237, in main
aggr_metrics_val, best_metrics, best_value = validate(val_evaluator, tensorboard_writer, config, best_metrics,
File "/home/work/.LVEF/ecg-lvef-prediction/NeurIPS2023-One-Fits-All/Classification/src/running.py", line 222, in validate
np.savez(pred_filepath, **per_batch)
File "<array_function internals>", line 200, in savez
File "/home/work/.local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 615, in savez
_savez(file, args, kwds, False)
File "/home/work/.local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 716, in _savez
val = np.asanyarray(val)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.

It's the result of run 'bash .scripts/Heartbeat.sh'
As the error code states, I cannot proceed to the next step after epoch 0, because I have error on validation after training epoch 0. Could anyone help us?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions