Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: attempt to get argmin of an empty sequence #518

rozetko opened this Issue Apr 5, 2019 · 0 comments


None yet
1 participant
Copy link

rozetko commented Apr 5, 2019

Error while learning:

analytics_1  |   File "/usr/local/lib/python3.6/asyncio/", line 358, in wait_for
analytics_1  |     return fut.result()
analytics_1  |   File "/usr/local/lib/python3.6/concurrent/futures/", line 56, in run
analytics_1  |     result = self.fn(*self.args, **self.kwargs)
analytics_1  |   File "bin/../analytics/detectors/", line 49, in train
analytics_1  |     new_cache =, segments, self.analytic_unit_id, cache)
analytics_1  |   File "bin/../analytics/models/", line 88, in fit
analytics_1  |     learning_info = self.get_parameters_from_segments(dataframe, labeled, deleted, model, model_type)
analytics_1  |   File "bin/../analytics/models/", line 149, in get_parameters_from_segments
analytics_1  |     learning_info['pattern_width'].append(utils.find_width(aligned_segment, model_type))
analytics_1  |   File "bin/../analytics/utils/", line 176, in find_width
analytics_1  |     left_extremum_index = utils.find_last_extremum(pattern_left, selector)
analytics_1  |   File "bin/../analytics/utils/", line 184, in find_last_extremum
analytics_1  |     first_extremum_ind = find_extremum_index(segment, not selector)
analytics_1  |   File "bin/../analytics/utils/", line 192, in find_extremum_index
analytics_1  |     return segment.argmin()
analytics_1  | ValueError: attempt to get argmin of an empty sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.