Skip to content

Commit

Permalink
fix forecast flattening prediction list error
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbchao committed Feb 6, 2024
1 parent 5eed28f commit 477a7d1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions raiwidgets/raiwidgets/responsibleai_dashboard_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,6 @@ def change(x):
predictions = convert_to_list(
self._analysis.model.forecast(filtered_data_df),
EXP_VIZ_ERR_MSG)
# forecast should return a flat list of predictions
if all([len(p) == 1 for p in predictions]):
predictions = [p[0] for p in predictions]
return {
WidgetRequestResponseConstants.data: predictions
}
Expand Down

0 comments on commit 477a7d1

Please sign in to comment.