Skip to content

Commit

Permalink
fix: log MOJO model as directory
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrianbn committed Sep 26, 2024
1 parent 8227c45 commit 240b254
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions rubicon_ml/client/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ def log_h2o_model(
if use_mojo:
model_data_path = f"{temp_dir_name}/{artifact_name}.zip"
h2o_model.save_mojo(path=model_data_path)

artifact = self.log_artifact(
name=artifact_name,
data_directory=model_data_path,
**log_artifact_kwargs,
)
else:
model_data_path = h2o.save_model(
h2o_model,
Expand All @@ -283,11 +289,11 @@ def log_h2o_model(
path=temp_dir_name,
)

artifact = self.log_artifact(
name=artifact_name,
data_path=model_data_path,
**log_artifact_kwargs,
)
artifact = self.log_artifact(
name=artifact_name,
data_path=model_data_path,
**log_artifact_kwargs,
)

return artifact

Expand Down

0 comments on commit 240b254

Please sign in to comment.