Closed lacava closed 3 years ago
@jmmcd for FFXRegressor, is the # of nodes in the GP-equivalent tree given by self._models[-1].complexity()
? If not can you define it for us?
In our trees, variable nodes have an associated weight, so that the output is always weight times variable value (from the dataset). Currently, these are not counted towards the complexity (e.g., a variable node has complexity 1).
Should we change this to take the multiplication into account? Such that complexity(variable node) == complexity (Multiply(variable node, constant node)))
= 3 ?
@foolnotion yes, the multiplication should count. I did something similar for FEAT
complexity is self-reported, but also measured via sympy
after simplification. see assess_symbolic_model.py
we should measure complexity of the final models produced by the methods. Since they all vary quite a bit, this isn't trivial. for the SR methods, we should be able to count the number of nodes (operators and literals) in the solutions.