forecastlab / forecast_dash

A website for viewing forecasting results of commonly used time series.
https://business-forecast-lab.com
Other
35 stars 17 forks source link

Update cv scores table #152

Closed ardimirzaei closed 2 years ago

ardimirzaei commented 2 years ago

Summary

Related Issues

Addresses Issue #134 and #146

Checklist

ardimirzaei commented 2 years ago

Example of the table:

Relative Scores image

Raw Scores image

Relative Scores with SES (ZNN) as the selected Model image

ardimirzaei commented 2 years ago

Sorting may not be working correctly. It appears to render as strings. Large numbers starting with a 1, will sort first. I.e 134234 is before 20.

ardimirzaei commented 2 years ago

Rounding using np.round keeps the number as a number, but doesn't pad with zeros at the end.

image

sjtrny commented 2 years ago
  1. Instead of buttons how about a toggle switch, radio buttons etc? At the moment the buttons are a little intrusive.
dbc.Switch(
    id="standalone-switch",
    label="This is a toggle switch",
    value=False,
)
  1. I think we have to go with sort_action='custom', on the DataTable and do it server side. This will allow sorting to occur numerically and give us full control over how the numbers are actually presented.

https://dash.plotly.com/datatable/callbacks#backend-paging-with-sorting