SolemnShark871/Churn

Lambda Issue

Closed this issue · 2 comments

7 people have 0 for lambda (after doing log likelihood MLE per age range)

For the last window, the maximum age is outside the window, so when you do <= max, you cut off some of the people
From line 23:

else: data_series[f'WINDOW_{i}'] = df[column].where(((df['EDAD'] >= lower_limit) & (df['EDAD'] <= max(df['EDAD']))))

@favioacostad

Fixed by Favio