Skip to content

Commit

Permalink
fix: use model_id instead of self.model_id when output_model_name is …
Browse files Browse the repository at this point in the history
…None in train_model
  • Loading branch information
Jean-Baptiste Oger committed Mar 5, 2024
1 parent c58e75b commit 91c7396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensearch_py_ml/ml_models/sentencetransformermodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def train_model(
if model_id is None:
model_id = self.model_id
if output_model_name is None:
output_model_name = str(self.model_id.split("/")[-1] + ".pt")
output_model_name = str(model_id.split("/")[-1] + ".pt")

# declare variables before assignment for training
corp_len = []
Expand Down

0 comments on commit 91c7396

Please sign in to comment.