My streamlit script works like this:
- Number of equations
- Data to fit equations
Takes too much time.
Randomly selecting x number of equations from the list and fit the data to these equations.
Present the best-fit equation and a matplotlib plot.
Also, since equations are randomly chosen, a select box is presented. My aim was: If user want to select any other equation from the list (maybe best one is over-fitted), s/he can change it from the list.
However, if user selects another option from the select box, all scrip is re-run which cause:
- Takes too much time.
- Since equations are randomly chosen, select-box changes.
When user select the equations from the list, best-fit equation and plot changes accordingly without re-running.