# instantiate the model and fit log = LogisticRegression(multi_class='warn', solver='warn') log_reg = log.fit(X, y)