question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Upgrade of sktime crashed my KNeighborsTimeSeriesClassifier code

See original GitHub issue

Describe the bug Upgrade of sktime crashed my existing project which uses the KNeighborsTimeSeriesClassifier. It seems to me that there was no backwards compatibility in one of the recent upgrades for the project. (Or of course I am doing something wrong myself).

To Reproduce

knn_model = KNeighborsTimeSeriesClassifier(n_neighbors=5, metric="dtw")

Expected behavior I got the following error: ~/Documents/time_series_analysis/venv/lib/python3.8/site-packages/sktime/classification/distance_based/_time_series_neighbors.py in init(self, n_neighbors, weights, algorithm, metric, metric_params, **kwargs) 167 ) 168 –> 169 super(KNeighborsTimeSeriesClassifier, self).init( 170 n_neighbors=n_neighbors, 171 algorithm=algorithm,

TypeError: super(type, obj): obj must be an instance or subtype of type

Additional context This happened with the most recent upgrade I did.

Versions

System: python: 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] executable: /home/thomas/Documents/time_series_analysis/venv/bin/python machine: Linux-5.8.0-36-generic-x86_64-with-glibc2.29

Python dependencies: pip: 20.0.2 setuptools: 44.0.0 sklearn: 0.24.0 sktime: 0.5.1 statsmodels: 0.12.1 numpy: 1.19.4 scipy: 1.5.4 Cython: None pandas: 1.1.5 matplotlib: 3.3.3 joblib: 0.17.0 numba: 0.52.0 pmdarima: None tsfresh: None

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TonyBagnallcommented, Jan 12, 2021

sorry about that, I’ll look into it

0reactions
TonyBagnallcommented, Feb 17, 2021

hi, I’ll close this now, feel free to raise a new issue if you are still having problems

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Upgrade of sktime crashed my ... - GitHub
Describe the bug Upgrade of sktime crashed my existing project which uses the KNeighborsTimeSeriesClassifier. It seems to me that there was ...
Read more >
Changelog — sktime documentation
We keep track of changes in this file since v0.4.0. The format is based on Keep a Changelog and we adhere to Semantic...
Read more >
Ben Auffarth - Machine Learning for Time-Series with Python ...
Download the example code files The code bundle for the book is also hosted on ... algorithms It's not an accident that sktime...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found