Providing better information in the attribute .I_
of class floss
#816
Closed
NimaSarajpoor
started this conversation in
General
Replies: 1 comment 1 reply
-
@NimaSarajpoor Here are some initial thoughts:
I wouldn't change anything unless we could motivate an actual real need as it feels like we are wasting our time guessing when nobody actually uses it or knows how to use it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been studying the module
floss
lately and I realized that attribute.I_
can/should provide more clear information. Based on my understanding, as we updateself._T
, we shift the time series T to the left and add a new data point to the end. We also shiftP
andI
to the left and update them accordingly. Note that shiftingI
andP
to the left means that we are losing information about the nearest neighbor of the very first data point inT
and their distance to each other. In other words, updatedP
represents the updatedself._T
. Thus, updatedI
should reflect updatedself._T
. One might think thatI
contains the start index of nn of the subsequences of self._T, and what if thenn
was something that was in the past and not in the currentself._T
(and hence we should store the index that is relative to their actual position in the time series). But, I think that is incorrect.floss
only deals with rightnn
. Therefore, logically speaking, the values ofself._I
should be inrange(0, len(self._T))
. In other words, I should seej==self._I[i]
, whereself._T[j:j+m]
is the RIGHT nearest neighbor ofself._T[i:i+m]
. I think this wayself._I
provides a better information compared to the existing versiton.I do not know how the
floss
works; however, if the goal of the attribute.I_
is to help user has access to such information, then I think the proposed approach is better as it can provide clearer information.What do you think @seanlaw ?
Beta Was this translation helpful? Give feedback.
All reactions