There is a bug 🐛 in the zillow/luminaire.
Data Exploration module doesn't work for time series with frequency 'W' because of a missing variable (tc_window_length).
Initial code
tc_window_len_dict = {
'H': 24,
'D': 7,
}
if freq in ['H', 'D']:
self.tc_window_length = tc_window_len_dict.get(freq)
v1
tc_window_len_dict = {
'H': 24,
'D': 7
}
self.tc_window_length = tc_window_len_dict.get(freq) if freq in ['H', 'D'] else None
v2
tc_window_len_dict = {
'H': 24,
'D': 7,
'W':4
}
self.tc_window_length = tc_window_len_dict.get(freq) if freq in ['H', 'D', 'W'] else None