Background
I am testing various saved models as part of an experiment, but one of the models comes from an algorithm I wrote, not from a sklearn mod
This approach works nicely for primitive methods (such as linear-regression), but how can you tweak this for more complex models (such as lasso or elastic net or...). It appears the linear regressor can be modified like this, but a lasso regressor still throws errors (complaint of not being fit: As in this question, which is indicated as a duplicate of the above.