This PR adds a tabular page to the dashboard (#838 ) and finalises all dashboard redesigns (#819 ).
Tabular page:
Page is implemented similar to the other pages (text, images, time series).
Other than the other pages, the tabular page requires the user to upload the training data, which has to be provided as npy file.
For this page it is not obligatory to upload a label text file, because you can also use it for regression models, in which case labels are not necessary. If labels are not uploaded, the page will treat the example as a regression model.
The available methods are currently RISE and LIME.
For the usage, a user uploads their tabular data csv file (full file). The data is read as pandas dataframe and the full table is shown in the dashboard. The user then clicks on a row in the table, which is the data for which the prediction and explanation is done.
A simple test to check the basic functionality of the page is added to the dashboard tests.
Note that a tabular example will be added in #789
Dashboard redesign changes:
_get_method_params is converted into get_params, such that method parameter seleciton is per method
For all pages a streamlit container (basically a box) is created at the top which includes the predicted class, number of top classes to show, method selection and method parameters. The different components are only shown when relevant.
function _get_top_indices_and_labels is adjusted such that for a regression model the predicted value is printed in the dashboard instead of the predicted class
Other changes:
naming of keys for streamlit elements is done in a prettier way
This PR adds a tabular page to the dashboard (#838 ) and finalises all dashboard redesigns (#819 ).
Tabular page: Page is implemented similar to the other pages (text, images, time series).
Dashboard redesign changes:
Other changes:
fixes #838 and fixes #819 and fixes #523