Parameters ---------- infer_processors : list - list of of processors to generate data for inference - example of : .. code-block:: 1) classname & kwargs: {
(
self,
instruments=None,
start_time=None,
end_time=None,
data_loader: Union[dict, str, DataLoader] = None,
infer_processors: List = [],
learn_processors: List = [],
shared_processors: List = [],
process_type=PTYPE_A,
drop_raw=False,
**kwargs,
)
| 435 | # - (e.g. self._infer processed by learn_processors ) |
| 436 | |
| 437 | def __init__( |
| 438 | self, |
| 439 | instruments=None, |
| 440 | start_time=None, |
| 441 | end_time=None, |
| 442 | data_loader: Union[dict, str, DataLoader] = None, |
| 443 | infer_processors: List = [], |
| 444 | learn_processors: List = [], |
| 445 | shared_processors: List = [], |
| 446 | process_type=PTYPE_A, |
| 447 | drop_raw=False, |
| 448 | **kwargs, |
| 449 | ): |
| 450 | """ |
| 451 | Parameters |
| 452 | ---------- |
| 453 | infer_processors : list |
| 454 | - list of <description info> of processors to generate data for inference |
| 455 | |
| 456 | - example of <description info>: |
| 457 | |
| 458 | .. code-block:: |
| 459 | |
| 460 | 1) classname & kwargs: |
| 461 | { |
| 462 | "class": "MinMaxNorm", |
| 463 | "kwargs": { |
| 464 | "fit_start_time": "20080101", |
| 465 | "fit_end_time": "20121231" |
| 466 | } |
| 467 | } |
| 468 | 2) Only classname: |
| 469 | "DropnaFeature" |
| 470 | 3) object instance of Processor |
| 471 | |
| 472 | learn_processors : list |
| 473 | similar to infer_processors, but for generating data for learning models |
| 474 | |
| 475 | process_type: str |
| 476 | PTYPE_I = 'independent' |
| 477 | |
| 478 | - self._infer will be processed by infer_processors |
| 479 | |
| 480 | - self._learn will be processed by learn_processors |
| 481 | |
| 482 | PTYPE_A = 'append' |
| 483 | |
| 484 | - self._infer will be processed by infer_processors |
| 485 | |
| 486 | - self._learn will be processed by infer_processors + learn_processors |
| 487 | |
| 488 | - (e.g. self._infer processed by learn_processors ) |
| 489 | drop_raw: bool |
| 490 | Whether to drop the raw data |
| 491 | """ |
| 492 | |
| 493 | # Setup preprocessor |
| 494 | self.infer_processors = [] # for lint |
nothing calls this directly
no test coverage detected