How icog-labs-dev/metta-moses works
MOSES is a MeTTaLog reimplementation of an evolutionary program learner. Its intended user-to-result workflow is to take a dataset, evolve candidate programs, select reasonably fit exemplars, alter their program trees, and seek better-fitting programs. The tree exposes distinct subsystems for deme evolution, representation, scoring, feature selection, and optimization, plus a Python Boolean-expression reducer. Most MeTTa runtime files were not sampled, so links between those subsystems are dashed and unverified; the README documents the high-level evolutionary workflow.
Main entry points: neighborhood-sampling.metta Neighborhood Sampling · expand-deme.metta Expand Demes · main.py Reduce Expression · Trees.py Tree Structures
Components 25
Deme Evolution
- Expand Demes
deme/expand-deme.metta - Create Deme
deme/create-deme.metta - Score Deme
deme/score-deme.metta - Merge Demes
deme/merge-demes.metta - Exemplar Selection
metapopulation/exemplar-selection.metta
Learning Support
- Feature Selection
feature-selection/feature-selection-main.metta - Similarity Scorers
feature-selection/similarity-scorers.metta - Fitness Scoring
scoring/fitness.metta - Complexity Scoring
scoring/complexity-based-scorer.metta
Program Representation
- Build Representation
representation/create-representation.metta - Logical Probes
representation/logical-probe.metta - Discrete Probes
representation/disc-probe.metta
Search and Optimization
- Neighborhood Sampling
moses/neighborhood-sampling.metta - Hill Climbing
optimization/hillclimbing/hill-climbing-helpers.metta - Simulated Annealing
optimization/simulated-annealing-algo/simulated-annealing.metta - EDA Search
optimization/pge/pge-eda.metta - SGE Search
optimization/sge/sge-and-tests.metta
Boolean Reduction
- Reduce Expression
reduct/enf/main.py - Build Expression Tree
reduct/enf/Utilities/BuildTree.py - Tree Structures
reduct/enf/DataStructures/Trees.py - Propagate Truth
reduct/enf/Utilities/PropagateTruthValue.py - Gather Junctors
reduct/enf/Utilities/GatherJunctors.py - Reduce Constraints
reduct/enf/Utilities/ReduceToElegance.py - Tree Helpers
reduct/enf/Utilities/HelperFunctions.py
Other components
- Dataset User
Connections 27
- Dataset User → Expand Demes: starts evolution
- Expand Demes → Create Deme: creates deme
- Expand Demes → Score Deme: scores candidates
- Expand Demes → Exemplar Selection: selects exemplar
- Expand Demes → Merge Demes: merges demes
- Exemplar Selection → Neighborhood Sampling: seeds alterations
README.md - Neighborhood Sampling → Expand Demes: generates variants
- Feature Selection → Similarity Scorers: uses scoring
- Feature Selection → Build Representation: selects features
- Build Representation → Logical Probes: builds probes
- Build Representation → Discrete Probes: builds probes
- Score Deme → Fitness Scoring: evaluates fitness
- Fitness Scoring → Complexity Scoring: scores complexity
- Neighborhood Sampling → Hill Climbing: can optimize with
- Neighborhood Sampling → Simulated Annealing: can optimize with
- Neighborhood Sampling → EDA Search: can optimize with
- Neighborhood Sampling → SGE Search: can optimize with
- Reduce Expression → Build Expression Tree: parses expression
reduct/enf/main.py - Build Expression Tree → Tree Structures: constructs nodes
reduct/enf/Utilities/BuildTree.py - Reduce Expression → Propagate Truth: propagates truth
reduct/enf/main.py - Reduce Expression → Gather Junctors: gathers junctors
reduct/enf/main.py - Reduce Expression → Reduce Constraints: reduces constraints
reduct/enf/main.py - Reduce Expression → Tree Helpers: parses and renders
reduct/enf/main.py - Propagate Truth → Tree Structures: creates nodes
reduct/enf/Utilities/PropagateTruthValue.py - Gather Junctors → Tree Structures: restructures nodes
reduct/enf/Utilities/GatherJunctors.py - Reduce Constraints → Tree Helpers: uses set operations
reduct/enf/Utilities/ReduceToElegance.py - Reduce Constraints → Tree Structures: updates tree nodes
reduct/enf/Utilities/ReduceToElegance.py