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

Error: ValueError - dataset input should have multiple elements #325

Closed
amper43 opened this Issue Dec 18, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@amper43
Copy link
Contributor

amper43 commented Dec 18, 2018

After labeling a Jump segment got following error:

image

logs:

2018-12-18 08:51:45,481 [Analytics] [ERROR]  handle_analytic_task exception: 'Traceback (most recent call last):
  File "bin/../analytics/analytic_unit_manager.py", line 77, in handle_analytic_task
    result_payload = await self.__handle_analytic_task(task)
  File "bin/../analytics/analytic_unit_manager.py", line 69, in __handle_analytic_task
    return await worker.do_train(payload['segments'], data, payload['cache'])
  File "bin/../analytics/analytic_unit_worker.py", line 28, in do_train
    new_cache: ModelCache = await self._training_feature
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "bin/../analytics/detectors/pattern_detector.py", line 43, in train
    new_cache = self.model.fit(dataframe, segments, cache)
  File "bin/../analytics/models/model.py", line 38, in fit
    self.do_fit(dataframe, segments)
  File "bin/../analytics/models/jump_model.py", line 46, in do_fit
    segment_cent_index, jump_height, jump_length = utils.find_parameters(segment_data, segment_from_index, 'jump')
  File "bin/../analytics/utils/common.py", line 219, in find_parameters
    segment_median, segment_max_line, segment_min_line = utils.get_distribution_density(flat_segment_dropna)
  File "bin/../analytics/utils/common.py", line 197, in get_distribution_density
    pdf = gaussian_kde(segment)
  File "/usr/local/lib/python3.6/site-packages/scipy/stats/kde.py", line 169, in __init__
    raise ValueError("`dataset` input should have multiple elements.")
ValueError: `dataset` input should have multiple elements.
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.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.