Project

General

Profile

Actions

Bug #13035

closed

[ASAP] sandbox : ошибка при запуске cluster_and_neural_net()

Added by Pavel Belecky 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Immediate
Assignee:
-
Target version:
-
Start date:
04/15/2024
Due date:
% Done:

0%

Estimated time:
Detected in build:
git
Platform:
Published in build:

Description

При запуске usage_example.py из https://github.com/PlekhanovRUE/mpd_tpc_tracker

если файл track_candidates_params.csv не содержит треков,
то функция cluster_and_neural_net() падает с ошибкой

Traceback (most recent call last):
  File "/home/belecky/work/sandbox_github_unch/usage_example.py", line 31, in <module>
    result["NNS"] = cluster_and_neural_net(model, deepcopy(result.get("RAW")), df, event_num, indices, hits=3)
  File "/home/belecky/work/sandbox_github_unch/post_processing/cleaning/neural_net.py", line 43, in cluster_and_neural_net
    track_scores = model.predict(tracks_for_nn)
  File "/home/belecky/work/venvs/venv9/lib/python3.10/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/home/belecky/work/venvs/venv9/lib/python3.10/site-packages/keras/src/engine/data_adapter.py", line 1319, in __init__
    raise ValueError("Expected input data to be non-empty.")
ValueError: Expected input data to be non-empty.

How to reproduce

  • скопировать приложенные txt файлы в data/tracks_data/
  • скопировать приложенный csv файл в data/data_for_ml/
  • заменить строку 501 на 383 в usage_example.py
  • python usage_example.py

Нужно, чтобы если nn не находит треки, например в случае если для данного события нет данных в csv файле, не падал, а возвращал пустое множество треков. И программа продолжала работать, выводила отчёт как обычно, и т.д.

Приоритет задачи: ВЫСОКИЙ.


Files

event_383_prototracks.txt (57 Bytes) event_383_prototracks.txt Pavel Belecky, 04/15/2024 09:00 AM
event_383_mc_track_params.txt (216 KB) event_383_mc_track_params.txt Pavel Belecky, 04/15/2024 09:00 AM
event_383_space_points.txt (181 KB) event_383_space_points.txt Pavel Belecky, 04/15/2024 09:00 AM
event_383_trackIds.txt (27 Bytes) event_383_trackIds.txt Pavel Belecky, 04/15/2024 09:00 AM
track_candidates_params.csv.gz (41.5 MB) track_candidates_params.csv.gz Pavel Belecky, 04/15/2024 09:15 AM
Actions #1

Updated by Pavel Belecky 9 months ago

  • Description updated (diff)
Actions #2

Updated by Pavel Belecky 9 months ago

  • Subject changed from sandbox : ошибка при запуске cluster_and_neural_net() to [ASAP] sandbox : ошибка при запуске cluster_and_neural_net()
Actions #3

Updated by Pavel Belecky 9 months ago

  • Description updated (diff)
Actions #6

Updated by Pavel Belecky 9 months ago

  • Description updated (diff)
Actions #7

Updated by Pavel Belecky 9 months ago

  • Description updated (diff)
Actions #8

Updated by Pavel Belecky 9 months ago

  • Description updated (diff)
Actions #9

Updated by Pavel Belecky 8 months ago

  • Description updated (diff)
Actions #10

Updated by Pavel Belecky 7 months ago

  • Status changed from New to Closed
  • Assignee deleted (Илья Козмин)
Actions

Also available in: Atom PDF