I am trying to run the following code
iter_max = 100
CC = 1
save_model = False
with mlflow.start_run(run_name=run_name, experiment_id=experiment.experiment_id, nested=True) as run:
text_clf = Pipeline([
('vect', CountVectorizer()),
('tfidf', TfidfTransformer()),
('clf',LogisticRegression(max_iter=iter_max, C=CC))])
text_clf.fit(X_train, y_train)
run_id = mlflow.active_run().info.run_id`
But I get no model and no dataset…
I would like to get a model so I can register it and use it on databricks
I would like to get a model, register it and use it
2
Answers
thanks for the reply! it worked, but I'm facing a new challenge....I used a balanced training set, nevertheless, the model created by mlflow is overfitting towards 1 outcome. To see if I was doing something wrong, I trained the model on databricks and run it on memory, turns out it isn't overfitting so...idk what is going on..
You need to register the model like below. Use below code.
Output:
You can use below code for prediction.
You can also see the model in models section.