Set current experiment
labridge.callback.experiment_log.set_current_experiment
¶
labridge.callback.experiment_log.set_current_experiment.SetCurrentExperimentOperation
¶
Bases: CallBackOperationBase
This operation will set a recorded experiment as the user's experiment in progress.
PARAMETER | DESCRIPTION |
---|---|
llm |
The used LLM.
TYPE:
|
embed_model |
The used embedding model.
TYPE:
|
verbose |
Whether to show the inner progress.
TYPE:
|
Source code in labridge\callback\experiment_log\set_current_experiment.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
|
labridge.callback.experiment_log.set_current_experiment.SetCurrentExperimentOperation.do_operation(**kwargs)
¶
Execute the operation set the experiment in progress for a user.
PARAMETER | DESCRIPTION |
---|---|
user_id |
The user id of a lab member.
TYPE:
|
experiment_name |
The name of a recorded experiment.
TYPE:
|
experiment_duration |
The duration of the experiment, in a format of "%Hh%Mm%Ss",
refer to
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
OperationOutputLog
|
The output and log of the operation.
TYPE:
|
Source code in labridge\callback\experiment_log\set_current_experiment.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
|
labridge.callback.experiment_log.set_current_experiment.SetCurrentExperimentOperation.operation_description(**kwargs)
¶
Return the operation description, this description will be sent to the user for authorization.
PARAMETER | DESCRIPTION |
---|---|
user_id |
The user id of a lab member.
TYPE:
|
experiment_name |
The name of a recorded experiment.
TYPE:
|
experiment_duration |
The duration of the experiment, in a format of "%Hh%Mm%Ss",
refer to
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
The operation description.
TYPE:
|
Source code in labridge\callback\experiment_log\set_current_experiment.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|