Closed arpm92 closed 3 years ago
This is a variant of https://github.com/manubrain/Demo-Cell-Classification/issues/10, the code assumes you are running it from the project's main directory. If you want to run from within './classifier' you have to change './' to '../' for every path.
Nevermind its not the path its from the merge. It introduced files like https://github.com/manubrain/Demo-Cell-Classification/blob/master/01_Data/201027/use_case2/Processed/Samples/sample_52.csv where key 560 is missing.
In 0ea702e1571cc3abd0dda0e8c00275e4a8c9aa6a we had no such files. There it worked.
47d53a34fdcaa2d158d0ff687b36acad3e90c4bc handles missing pos keys by skipping the new files. Does it work for you as well?
Everything works fine now. I do not understand why where files without the 560. I will check that again.
By runnnig the file it gives the following output:
Warning belt array empty. Warning belt array empty. Warning belt array empty. Warning belt array empty. Warning belt array empty. Warning belt array empty. Traceback (most recent call last): File "train_test_svm_classifier.py", line 14, in
demo_cell_data = DataLoader(case_path_lst=path_lst, debug=False)
File "/mnt/d/05_Projekte/04_Research/08_ManuBrain/01_Lab/Demo-Cell-Classification/classifier/data_loader.py", line 37, in init
self._create_xy()
File "/mnt/d/05_Projekte/04_Research/08_ManuBrain/01_Lab/Demo-Cell-Classification/classifier/data_loader.py", line 112, in _create_xy
x, y = self._process_table(sample)
File "/mnt/d/05_Projekte/04_Research/08_ManuBrain/01_Lab/Demo-Cell-Classification/classifier/data_loader.py", line 207, in _process_table
pos_array = np.stack(pos_lst)
File "<__array_function__ internals>", line 5, in stack
File "/home/alejandro/.local/lib/python3.8/site-packages/numpy/core/shape_base.py", line 423, in stack
raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack