How to generalise fitting function to allow sciPy curve fit to infer the number of inputs
I have a program which will generate a SciPy lambdify expression (symbolic function) with a variable number of unknown variables. I am trying to fit to this function using the curve_fit utility without explicitly passing the exact number of variables to the function.