Skip to content

Commit 356620f

Browse files
authored
Merge pull request microsoft#362 from D-X-Y/main
Add load_object function for R
2 parents 445158b + e7e3cae commit 356620f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qlib/workflow/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@ def save_objects(self, local_path=None, artifact_path=None, **kwargs):
416416
"""
417417
self.get_exp().get_recorder().save_objects(local_path, artifact_path, **kwargs)
418418

419+
def load_object(self, name: Text):
420+
"""
421+
Method for loading an object from artifacts in the experiment in the uri.
422+
"""
423+
return self.get_exp().get_recorder().load_object(name)
424+
419425
def log_params(self, **kwargs):
420426
"""
421427
Method for logging parameters during an experiment. In addition to using ``R``, one can also log to a specific recorder after getting it with `get_recorder` API.

0 commit comments

Comments
 (0)