Skip to content

ValueError: need at least one array to concatenate #15

@AzadehGh

Description

@AzadehGh

Hello
according to https://github.com/genaris/deepsleepnet I made some changes to run this code on Python 3.7. after solving some warnings about packages compatibility this error is not solved yet:

(Python f) F:\PhD\5th semester\Deep Learning\project\Python f>python seq2seq_sleep_sleep-EDF.py --data_dir data_2013/eeg_fpz_cz --output_dir output_2013 --n_folds 6
2021-02-11 14:47:47.456383

========== [Fold-0] ==========

Load training set:

Load Test set:

Training set: n_subjects=0
Number of examples = 0
Traceback (most recent call last):
File "seq2seq_sleep_sleep-EDF.py", line 757, in
tf.app.run()
File "F:\PhD\5th semester\Deep Learning\project\Python f\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "seq2seq_sleep_sleep-EDF.py", line 755, in main
run_program(hparams,FLAGS)
File "seq2seq_sleep_sleep-EDF.py", line 500, in run_program
X_train, y_train, X_test, y_test = data_loader.load_data(seq_len=hparams.max_time_step)
File "F:\PhD\5th semester\Deep Learning\project\Python f\dataloader.py", line 160, in load_data
self.print_n_samples_each_class(np.hstack(label_train),self.classes)
File "F:\PhD\5th semester\Deep Learning\project\Python f\lib\site-packages\numpy\core\shape_base.py", line 340, in hstack
return _nx.concatenate(arrs, 1)
ValueError: need at least one array to concatenate

it seems that the data is not loaded. I would appreciate if you could let me know the solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions