MCPcopy
hub / github.com/microsoft/qlib / _run_proc_l

Method _run_proc_l

qlib/data/dataset/handler.py:531–541  ·  view source on GitHub ↗
(
        df: pd.DataFrame, proc_l: List[processor_module.Processor], with_fit: bool, check_for_infer: bool
    )

Source from the content-addressed store, hash-verified

529
530 @staticmethod
531 def _run_proc_l(
532 df: pd.DataFrame, proc_l: List[processor_module.Processor], with_fit: bool, check_for_infer: bool
533 ) -> pd.DataFrame:
534 for proc in proc_l:
535 if check_for_infer and not proc.is_for_infer():
536 raise TypeError("Only processors usable for inference can be used in `infer_processors` ")
537 with TimeInspector.logt(f"{proc.__class__.__name__}"):
538 if with_fit:
539 proc.fit(df)
540 df = proc(df)
541 return df
542
543 @staticmethod
544 def _is_proc_readonly(proc_l: List[processor_module.Processor]):

Callers 1

process_dataMethod · 0.95

Calls 3

logtMethod · 0.80
is_for_inferMethod · 0.45
fitMethod · 0.45

Tested by

no test coverage detected