factor_agent.aggregations#
Session aggregations: the operators that reduce each session’s intraday bars to one value per stock and day.
Each is a marker: a KunQuant operator class that computes nothing itself.
Candidate code calls it like any operator and the Gate records it as one
node of the graph, so a graph’s identity does not depend on how the
aggregation is computed; factor_agent.session.SessionFactor expands it
into KunQuant accumulators when it builds its function. An operator file
registers an aggregation like any operator, by its class here.
WithinSession is no aggregation: the stage split wraps each window of
the intraday stage in it, so the window is missing until it fits in the
session. Candidate code never calls it.
Classes
The base of the session aggregations: a reduction of its inputs over each session's bars. |
|
The correlation of |
|
The number of the session's bars where |
|
The first value of |
|
The last value of |
|
The greatest value of |
|
The mean of |
|
The least value of |
|
The unbiased skewness of |
|
The unbiased standard deviation of |
|
The sum of |
|
The mean of |
|
|