Troubleshooting Guide¶
Common issues and solutions.
Installation Issues¶
"ModuleNotFoundError: No module named 'ga_trees'"¶
Solution:
"ImportError: graphviz not found"¶
Solution:
# Install system package
sudo apt-get install graphviz # Ubuntu
brew install graphviz # macOS
# Install Python package
pip install graphviz
Training Issues¶
Fitness not improving¶
Symptoms: Best fitness plateaus after 5-10 generations
Solutions:
- Increase population size:
- Increase generations:
- Adjust mutation rate:
Trees too large¶
Symptoms: Trees have 50+ nodes, difficult to interpret
Solutions:
- Increase interpretability weight:
- Increase node complexity penalty:
- More aggressive pruning:
Poor accuracy¶
Solutions:
- Increase accuracy weight
- Allow deeper trees
- Increase population/generations
- Run hyperparameter optimization