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

build_figure is expecting wrong column names #20

Open
yodobrin opened this issue Dec 11, 2019 · 2 comments
Open

build_figure is expecting wrong column names #20

yodobrin opened this issue Dec 11, 2019 · 2 comments

Comments

@yodobrin
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run the notebook, try to execute build_figure(sample_data,95)
since the values returned are not in plural there are multiple errors.

Any log messages given by the failure

getting a KeyError when trying build the figure

for example
columns = {'expectedValues': result['expectedValues'],
this is the case for : upperMargins, lowerMargins

Expected/desired behavior

notebook should run w/o errors

OS and Version?

Windows 10.

Versions

Mention any other details that might be useful

running on a notebook vm with Python 3 kernel


Thanks! We'll be in touch soon.

@Illuminae
Copy link

Experiencing the same bug.

@ghost
Copy link

ghost commented Nov 18, 2020

It's not a bug, I was doing a mistake with my endpoint.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run the notebook, try to execute build_figure(sample_data,95)
since the values returned are not in plural there are multiple errors.

Any log messages given by the failure

getting a KeyError when trying build the figure

for example
columns = {'expectedValues': result['expectedValues'],
this is the case for : upperMargins, lowerMargins

Expected/desired behavior

notebook should run w/o errors

OS and Version?

Windows 10.

Versions

Mention any other details that might be useful

running on a notebook vm with Python 3 kernel

Thanks! We'll be in touch soon.

Are you seeing this with the real-time endpoint version?
'[Placeholder: Your Anomaly Detector resource endpoint]/anomalydetector/v1.0/timeseries/last/detect'?

Because, I've got the same error but I was using the wrong endpoint.

With the /last/detect endpoint, the detect() function return only one value in the following format:
{'expectedValue': 32804357.00546007, 'isAnomaly': True, 'isNegativeAnomaly': True, 'isPositiveAnomaly': False, 'lowerMargin': 1640217.850273002, 'period': 7, 'suggestedWindow': 29, 'upperMargin': 1640217.8502730057}

No plurals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants