File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 55 - To show the data modules of Qlib is Serializable, users can dump processed data to disk to avoid duplicated data preprocessing
66"""
77
8- from copy import deepcopy
98from copy import deepcopy
109from pathlib import Path
1110import pickle
Original file line number Diff line number Diff line change 5050 # this will save the time to reload and process data from disk(in `DataHandlerLP`)
5151 # It still takes a lot of time in the backtest phase
5252 for i in range (repeat ):
53- task_train (new_task [ "task" ] , experiment_name = exp_name )
53+ task_train (new_task , experiment_name = exp_name )
5454
5555 # 4) User can change other parts exclude processed data in memory(handler)
5656 new_task = deepcopy (task_config ["task" ])
5757 new_task ["dataset" ]["kwargs" ]["segments" ]["train" ] = ("20100101" , "20131231" )
5858 with TimeInspector .logt ("The time with reusing processed data in memory:" ):
59- task_train (new_task [ "task" ] , experiment_name = exp_name )
59+ task_train (new_task , experiment_name = exp_name )
You can’t perform that action at this time.
0 commit comments