How do I loop in python and dynamically create instances of objects that may require different arguments?
I have various subclasses of statistical models in my repo that typically take similar arguments but some may require special arguments. I’m writing a function to create, train, and score each model and then compare their accuracy. That leads to two linked questions: