factor_agent.candidate.Candidate#

class Candidate(hypothesis, mechanism_type, horizon_rationale, description, code)[source]#

Bases: object

One proposed factor.

code is a Python body over the vocabulary’s operators that ends by assigning the factor to alpha. A candidate states no direction: which way it predicts is read from its training IC.

Methods#

Candidate.from_dict

Build a candidate from the proposer's JSON object, whose type must be one of mechanism_types.

Candidate.to_dict

Return the candidate as the JSON object it was parsed from.

Attributes#

Candidate.hypothesis#
Candidate.mechanism_type#
Candidate.horizon_rationale#
Candidate.description#
Candidate.code#