QDpy
Loading...
Searching...
No Matches
heuristic_design.py File Reference

Structure-directed heuristic repertoires with instance-specific selection. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.heuristic_design.HeuristicDesignStats
 Work and admissions from heuristic repertoire construction. More...
class  qdpy.algorithms.heuristic_design.QDHeuristicDesign
 Evolve a repertoire with structural Shapley features and select by instance similarity. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.heuristic_design.ast_node_counts (source, node_names)
 Count named Python AST nodes without executing a candidate.

Detailed Description

Structure-directed heuristic repertoires with instance-specific selection.

See also
https://doi.org/10.1109/TEVC.2026.3721299

Definition in file heuristic_design.py.

Function Documentation

◆ ast_node_counts()

qdpy.algorithms.heuristic_design.ast_node_counts ( source,
node_names )

Count named Python AST nodes without executing a candidate.

Return counts in the supplied AST class-name order.

SyntaxError from ast.parse lets callers reject malformed proposals
before they submit them to a training evaluator.

Definition at line 24 of file heuristic_design.py.