Hey guys;
I have a question regarding detecting a value that has changed.
Here is some background:
My app is going to allow a user to build and train a machine learning model depending on:
- The dataset chosen by the user. I built a dropdown menu for the user to choose a dataset. I store the name and the dataset in dcc.Store containers.
- The user selected machine learning model
The app will build a either a classification or regression model, depending on the dataset chosen by the user.
Where I’m having trouble is figuring out how to deal with the case where a user might change the dataset.
What I want to happen in that case is to clear any outputs (graphs, data, etc) related to the old dataset and machine learning model currently being displayed.
I’m not sure how to do this, so before i build a class, or find some other way of storing variables globally, I’d like to know if there are any attributes available in dash that I can use to help me in this situation.
Are there any attributes that I can use to detect a change?
Thank you!