Lecture 4 Flashcards
What does GP stand for
Genetic Programming
What does the genotype of a GP represent?
A program or math equation.
How is the fitness of a GP solution determined?
By executing the program/solution and scoring the output. Usually the output is compared to a reference using MSE.
What is the core principle of Symbolic Regression?
Given a data set of d features and n samples, where each sample of features results in y, find a function that can recreate this behaviour.
AKA find the hidden function given some input and output.
What is the main reason to pick GP over ML?
GP will create interpretable models.
In tree-based GP, what are the leave nodes called?
Terminal Nodes
In tree-based GP, what are the internal nodes called
Atomic Funcions
In tree-based GP, what is the primitive set? and where is it used?
Union of both the function set and the terminal set.
It is used in tree initialisation
In tree-based GP, what is the terminal set?
A set of all terminal (leave) nodes. In GP, usually these are real values.
Explain how a GP tree is initialised using the grow method.
- Start from root node
- If max depth has not been reached: randomly sample from primitive set.
- else: randomly sample from terminal set
- Stop when:
- Max depth reached
- Leaf node sampled
Explain how a GP tree is initialised using the full method.
- Start from the root node.
- if max depth has not been reached: choose from function set
- else: randomly choose from terminal set
- Initialisation will stop itself as all leaves will be at max depth
Explain how a GP tree is initialised using Ramped Half and Half.
Population is segmented into bins where every bin has its own max depth. The max depth ramps up per bin, such that it covers all depths between max and min depth.
Furthermore, each bin is initialised with ** both grow and full** method. It randomly selects a method for each individual.
Duplicates within a bin are discarded
In tree-based GP, what is non injective?
Many different trees with the same output can be generated.
Does a GP tree use crossover of mutation to cause variation?
Both.
How does a GP mutate?
It generates a new subtree, with wich a branch is replaced.