problem in calculating index_mass
Hi, our company is trying to apply tsfresh on our credit scoring models for time series data but one problems came up. During calculating index_mass, np.argmax(mass_centralized >= config["q"])+1) is trying to get the index of a time series for a single sample when the cumsum of this feature is greater than given quantile. however, the results is not a 'relative' index within a time series data for a single sample but relative to the index of the whole sample. For example, in the show case robot_execution_failures, extracted feature 'a__index_mass_quantile__q_0.1' increases when sample id increases. In my experience, using a pure random id to classify samples always has good statistical evaluation results but the models themselves are meaningless. We are thinking that is it a better way to reset dataframe index while calculating index mass? So that the np.argmax will get the the index regardless of which part of the whole sample is the sample from but just the position of the time in the series.
Hi @MoffyJiang
may I ask why you closed this issue?
I think the point that you mentioned is valid. I will investigate this.
Hi sorry I saw #162 and I thought it was the same issue as mine. But after I read it carefully I found that was about id not index....sorry
I know how to fix this: instead of reseting the index we have to call .value before np.argmax
Thanks for reporting, I will add a pr later.
ah yes! thanks for your help!
#162 was about the id column. This issue is caused by the index
Please check if your problems also occur with version 0.7.0, if they do reopen this issue.
again, thanks for reporting this one
thanks for your help!