1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-12 15:26:54 +08:00

add docstring

This commit is contained in:
lzh222333
2021-06-29 10:37:09 +00:00
committed by you-n-g
parent 0b83fb3564
commit b523b27d5a

View File

@@ -309,6 +309,18 @@ class MLflowRecorder(Recorder):
shutil.rmtree(temp_dir) shutil.rmtree(temp_dir)
def load_object(self, name): def load_object(self, name):
"""
Load object such as prediction file or model checkpoint in mlflow.
Args:
name (str): the object name
Raises:
LoadObjectError: if raise some exceptions when load the object
Returns:
object: the saved object in mlflow.
"""
assert self.uri is not None, "Please start the experiment and recorder first before using recorder directly." assert self.uri is not None, "Please start the experiment and recorder first before using recorder directly."
try: try: