I want a function to take in a model parameter as a variable and sub that parameter into the ML model.
Example is:
def create_model(model_class):
return sk.linear_model.{model_class}
I think it should be done using classes but i'm pretty lost.
I've tried creating a class but cannot get the output to be the ML model object.