Comments (4)
Yes, exactly outside the permitted band, we should fill the bounding matrix with +inf.
- I think that this bug could lead to incorrect distance measures, in any case, it can result in spurious analyses.
- Following the rules to compute the costs, if you have to compute the values in the diagonal cells, you should sum the Euclidean distances both for i,j and i-1, j-1.
x1 = np.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0])
x2 = np.array([10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0])
x1_p = np.insert(x1, 0, 0)
x2_p = np.insert(x2, 0, 0)
dist = 0
for i in range(1, len(x1_p)):
dist += abs(x1_p[i] - x2_p[i]) + abs(x1_p[i-1] - x2_p[i-1])
print(dist)
dist = 86.0
- I don't think z-scoring the time series in input is mandatory.
from sktime.
I see - I think you are right. Just to clarify, you think it should be filled with +inf outside the permitted band, right?
When we fix this, we should:
- also update the docstrings to be very specific about the output matrix
- ensure to add a test that checks actual against expected for
window < 1.0
Further questions:
- TWE distance is a "standard" distance afaik, right? does this mean, it would lead to spurious/incorrect low performance of baselines in predicive performance benchmarking studies?
- can you explain how you obtain 86? I get 44, summing up the Euclidean distances.
- is there perhaps an issue regarding normalization, e.g., by length of series yes/no in th computation? Docstring is not too clear which version of the distance this is, normalized or not, perhaps we should also fix this.
from sktime.
Ah, thanks for the clarification. I forgot the i-1 terms.
Would you like to make a pull request with a fix?
from sktime.
I don't think z-scoring the time series in input is mandatory.
Yes, of course - my issue is that it is not actually clear whether it is done or not, to a user.
from sktime.
Related Issues (20)
- [ENH] design ideas for `fit` method in `momentfm`
- [BUG] Large loss amounts during training when using `hf_transformers_forecaster`
- [ENH] Pass an initialized pytorch-forecasting model directly
- [ENH] ensure `make_reduction` works with `skpro` proba regressors
- [ENH] probabilistic regressor support for `DirectReductionForecaster`
- [BUG] segmentation fails for change point detectors HOT 1
- [BUG] Dead image links in Signature Methods Section of docs HOT 3
- [BUG] table in API reference for transformer input/output tags does not display
- [ENH] Hosting moirai weights (old permissive license) on hugging face HOT 1
- [ENH] time series segmentation via clustering - reduction of time series segmentation to tabular clustering HOT 1
- [ENH] minimal episode length smoother for segmentations and change points HOT 2
- [BUG] CV calculation is incorrect in ADICVTransformer class HOT 10
- [BUG] error message for extras doesn't mention version constraints
- [DOC] De-duplicate User Guide & Examples
- [ENH] Reduce docs build time HOT 1
- [ENH] `autots` integration and work items
- [DOC] various documentation issues HOT 1
- [ENH] Add sampler with seed argument to ForecastingOptunaSearchCV HOT 3
- [MNT] How to deal with (foundation) models from packages not published on pypi HOT 10
- [ENH] Test all annotators with different index types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sktime.