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
Copy file name to clipboardExpand all lines: rdagent/scenarios/qlib/experiment/prompts.yaml
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ qlib_model_background: |-
156
156
3. Architecture: The detailed architecture of the model, such as neural network layers or tree structures.
157
157
4. Hyperparameters: The hyperparameters used in the model, such as learning rate, number of epochs, etc.
158
158
5. ModelType: The type of the model, "Tabular" for tabular model and "TimeSeries" for time series model.
159
-
The model should provide clear and detailed documentation of its architecture and hyperparameters. One model should statically define one output with a fixed architecture and hyperparameters. For example, a model with an two GRU layer and a model with three GRU layer should be considered two different models.
159
+
The model should provide clear and detailed documentation of its architecture and hyperparameters. One model should statically define one output with a fixed architecture and hyperparameters.
160
160
161
161
qlib_model_interface: |-
162
162
Your python code should follow the interface to better interact with the user's system.
@@ -176,7 +176,7 @@ qlib_model_interface: |-
176
176
model_cls = XXXModel
177
177
```
178
178
179
-
The model has two types, "Tabular" for tabular model and "TimeSeries" for time series model. The input shape to a tabular model is (batch_size, num_features) and the input shape to a time series model is (batch_size, num_features, num_timesteps). The output shape of the model should be (batch_size, 1).
179
+
The model has two types, "Tabular" for tabular model and "TimeSeries" for time series model. The input shape to a tabular model is (batch_size, num_features) and the input shape to a time series model is (batch_size, num_timesteps, num_features). The output shape of the model should be (batch_size, 1).
180
180
The "batch_size" is a dynamic value which is determined by the input of forward function.
181
181
The "num_features" and "num_timesteps" are static which will be provided to the model through init function.
182
182
User will initialize the tabular model with the following code:
@@ -189,8 +189,6 @@ qlib_model_interface: |-
189
189
```
190
190
No other parameters will be passed to the model so give other parameters a default value or just make them static.
191
191
192
-
When dealing with TimeSeries model, remember to permute the input tensor since the input tensor is in the shape of (batch_size, num_features, num_timesteps) and a normal time series model is expecting the input tensor in the shape of (batch_size, num_timesteps, num_features).
193
-
194
192
Don't write any try-except block in your python code. The user will catch the exception message and provide the feedback to you. Also, don't write main function in your python code. The user will call the forward method in the model_cls to get the output tensor.
195
193
196
194
Please notice that your model should only use current features as input. The user will provide the input tensor to the model's forward function.
0 commit comments