lumen-org / modelbase

A SQL-like interface for python and the web to query probabilistic machine learning models and its data.
GNU Lesser General Public License v3.0
4 stars 1 forks source link

Frontend adaption for independent variables #47

Open jong42 opened 5 years ago

jong42 commented 5 years ago

For each variable, if fields['independent'] == True, the following behaviour has to be guaranteed in the frontend:

jong42 commented 5 years ago

I changed the backend so that density queries on a model with independent variables always return np.NaN. Now, when- in the frontend - the option to show marginal plots is selected for an independent variable, no distribution is shown anymore. The same should happen for contour plots, but here occurs a bug: When the option to show a contour plot is selected, the whole visualization stops, without showing an error. Screenshot from 2019-06-19 14-41-54

To reproduce the problem: