factor_agent.gate.vocabulary.Vocabulary#
- class Vocabulary(sources, columns=None, intraday_columns=None)[source]#
Bases:
objectWhat candidates may write with; build it with
load, orfrom_sourcesin the sandbox.- Raises:
- VocabularyError
If the files have any problem; every problem is listed.
Methods#
Whether |
|
Return why |
|
The class path of every operator recorded graphs ( |
|
The |
|
Run candidate code, which passed |
|
The field reading |
|
The hint of every fix one of |
|
Rebuild a vocabulary from another's |
|
Read the field files |
|
The prompt's description of the vocabulary: inputs, operators, parameter values, builtins. |
|
Return the name a graph records |
|
The operator a graph records as |
|
|
Attributes#
- Vocabulary.classes#
Every class a graph may hold, by the name it is recorded under (
Inputincluded).
- Vocabulary.constant_set[source]#
The parameter set of constants: the one
ConstantOp’s value is in (elseAddConst’s orMulConst’s).The operator file names its sets as it likes; the set an operator’s attribute is in says what kind of value it holds.
- Vocabulary.intraday_columns#
The columns the intraday family’s fields read; empty without an intraday family.
- Vocabulary.intraday_lags#
The lags, in bars, the intraday stage may use: the intraday family’s, else the operator file’s lag set.
- Vocabulary.lag_columns#
How each lag column candidate code may read is computed, by its name (
factor_agent.period_lag).
- Vocabulary.names#
Every name candidate code may read without binding it first.
- Vocabulary.operator_classes#
The registered classes, each with the name a graph records it under.
- Vocabulary.reference_hashes[source]#
The canonical hashes of the derived fields (hash -> name) and of every node of the bar mask.
The mask is a sum over the bar columns; its partial sums are part of it too, so a graph that shares only them with a reference factor shares nothing the candidate wrote.
- Vocabulary.sources#
The files’ paths and text and the operator modules: what the sandbox rebuilds from.
- Vocabulary.parameters#
The parameter sets of the operator file, by kind.
- Vocabulary.fields#
The fields of every family, in file order.
- Vocabulary.families#
The description of every family, in file order.
- Vocabulary.excluded#
The operator file’s excluded classes, with their reasons.
- Vocabulary.period_lags#
The declared period lags, by family.
- Vocabulary.intraday_family#
The intraday family, None when no field file is marked intraday.
- Vocabulary.intraday_windows#
The window lengths, in bars, the intraday stage may use.