quantlab.factor.config.IntradayCompositeConfig#
- class quantlab.factor.config.IntradayCompositeConfig(*, warmup_bars=0, dataset=None, file_path=None, factor_names=None, kwargs=None, resample_freq=None, resample_how=None, name=None, factor, composites=<factory>, njobs=128)[source]#
Bases:
BaseFactorConfigConfig of
quantlab.factor.predefined.intraday.IntradayComposite.factoris the factor whose stored daily values are combined, usually a resampledIntradayStats; it keeps its own config and store, which must cover the range asked for.compositesmaps each output name to its parts, each a string"[-]<output>:<statistic>:<window>": a trailingmeanorcv(standard deviation over mean) of one of the wrapped factor’s outputs overwindowbars, negated by a leading-.datasetis filled with the wrapped factor’s dataset.Examples
With
dailyanIntradayStatsresampled to"1d":>>> cfg = IntradayCompositeConfig( ... factor=daily, ... composites={"small_lit_trades": ("-trade_size:mean:60", "-offexchange_share:mean:60")}, ... ) >>> cfg.warmup_bars, cfg.composites["small_lit_trades"][0] (0, '-trade_size:mean:60')
- composites#
Output name to its parts, each
"[-]<output>:<mean|cv>:<window>".
- dataset = None#
Filled with the wrapped factor’s dataset by the factor’s config setter.
- factor#
The factor whose stored values are combined.
- njobs = 128#
Threads used by the KunQuant executor.
- warmup_bars = 0#
The windows’ history is read from the wrapped store; anything but 0 is refused.