File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -704,8 +704,12 @@ def __init__(
704
704
f" Please check the API documentation for the supported dataset types."
705
705
)
706
706
# check if any other format other than JSON is provided for time series case
707
- if time_series_data_config and dataset_type != "application/json" :
708
- raise ValueError ("Currently time series explainability only supports JSON format data" )
707
+ if time_series_data_config :
708
+ if dataset_type != "application/json" :
709
+ raise ValueError (
710
+ "Currently time series explainability only supports JSON format data"
711
+ )
712
+ assert headers , "Headers are required for time series explainability"
709
713
# features JMESPath is required for JSON as we can't derive it ourselves
710
714
if dataset_type == "application/json" and features is None and not time_series_data_config :
711
715
raise ValueError ("features JMESPath is required for application/json dataset_type" )
You can’t perform that action at this time.
0 commit comments