Closed fzc621 closed 3 years ago
@fzc621
This is really a great Quesetion.
I think minor midifications are required if you want to record something about the database.
Create a base class DatasetRecord
for storing info from database.
Change the workflow of the trainner.
if issubclass(recorder, DatasetRecord):
pass the dataset when initialization recorder
Example and functions below maybe helpful
Create your own subclass of DatabaseRecord and save your info in the recorder.
Your PR is welcome! :)
Thanks for your reply! I will try to submit a PR!
Hi,
I am working on creating my own RecordTemplates, which needs some original data from the dataset, say "vwap" or "volume". So I have to save "vwap.pkl" or "volume.pkl" within my own SignalRecorder. Is it possible to save those objects, similar to the "label.pkl" saved by Qlib's SignalRecoder? I am able to make it in a "dirty" way:
Is there any better way to make it? Using the dataset class? I got stuck in retrieving the original data via dataset class.
Thanks