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

[BUG] merlin/plot.py - #156

Open
ravenrip opened this issue May 19, 2023 · 0 comments
Open

[BUG] merlin/plot.py - #156

ravenrip opened this issue May 19, 2023 · 0 comments

Comments

@ravenrip
Copy link

Describe the bug
Unable to run plot.py without error:
ValueError: Multi-dimensional indexing (e.g. obj[:, None]) is no longer supported. Convert to a numpy array before indexing instead.

To Reproduce
Run code from tutorial:
for model in [model1, model2, model3]:
print(type(model).name)
fig, ax = model.plot_anomaly(
time_series=test_data, time_series_prev=train_data,
filter_scores=True, plot_time_series_prev=True)
plot_anoms(ax=ax, anomaly_labels=test_labels)
plt.show()
print()

Expected behavior
Plot the Anamalies based on model

Screenshots
Worked after adding image

Desktop (please complete the following information):

  • OS: Ubuntu 16.04 LTS

Additional context
Resolved by updating Line 219 & 246: ln = ax.plot(np.array(y.index), y.np_values, c="k", alpha=0.8, lw=1, zorder=1, label=metric_name)

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

1 participant