You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method to start an experiment. This method can only be called within a Python's `with` statement. Here is the example code:
29
33
30
34
.. code-block:: Python
31
35
36
+
# start new experiment and recorder
32
37
with R.start('test', 'recorder_1'):
33
38
model.fit(dataset)
34
39
R.log...
35
40
... # further operations
36
41
42
+
# resume previous experiment and recorder
43
+
with R.start('test', 'recorder_1', resume=True): # if users want to resume recorder, they have to specify the exact same name for experiment and recorder.
44
+
... # further operations
45
+
37
46
Parameters
38
47
----------
39
48
experiment_name : str
@@ -45,16 +54,18 @@ def start(
45
54
The default uri is set in the qlib.config. Note that this uri argument will not change the one defined in the config file.
46
55
Therefore, the next time when users call this function in the same experiment,
47
56
they have to also specify this argument with the same value. Otherwise, inconsistent uri may occur.
57
+
resume : bool
58
+
whether to resume the specific recorder with given name under the given experiment.
raiseValueError("No valid recorder has been found, please make sure the input recorder id is correct.")
247
278
elifrecorder_nameisnotNone:
248
279
logger.warning(
249
-
f"Please make sure the recorder name {recorder_name} is unique, we will only return the first recorder if there exist several matched the given name."
280
+
f"Please make sure the recorder name {recorder_name} is unique, we will only return the latest recorder if there exist several matched the given name."
0 commit comments