Distinguish flip rate from flip probability
This commit is contained in:
parent
35ac379f06
commit
81f2c3197f
@ -88,47 +88,50 @@
|
|||||||
:elitism false})
|
:elitism false})
|
||||||
|
|
||||||
#_(gp/gp {:instructions propeller.problems.simple-regression/instructions
|
#_(gp/gp {:instructions propeller.problems.simple-regression/instructions
|
||||||
:error-function propeller.problems.simple-regression/error-function
|
:error-function propeller.problems.simple-regression/error-function
|
||||||
:max-generations 500
|
:max-generations 500
|
||||||
:population-size 500
|
:population-size 500
|
||||||
:max-initial-plushy-size 100
|
:max-initial-plushy-size 100
|
||||||
:step-limit 200
|
:step-limit 200
|
||||||
:parent-selection :lexicase
|
:parent-selection :lexicase
|
||||||
:tournament-size 5
|
:tournament-size 5
|
||||||
:umad-rate 0.1
|
:umad-rate 0.1
|
||||||
:variation {:umad 0.8
|
:diploid-flip-rate 0.1
|
||||||
:flip 0.2}
|
:variation {:umad 0.8
|
||||||
:elitism false
|
:diploid-flip 0.2}
|
||||||
:diploid true})
|
:elitism false
|
||||||
|
:diploid true})
|
||||||
|
|
||||||
|
|
||||||
|
#_(gp/gp {:instructions propeller.problems.software.smallest/instructions
|
||||||
|
:error-function propeller.problems.software.smallest/error-function
|
||||||
|
:max-generations 500
|
||||||
|
:population-size 500
|
||||||
|
:max-initial-plushy-size 100
|
||||||
|
:step-limit 200
|
||||||
|
:parent-selection :lexicase
|
||||||
|
:tournament-size 5
|
||||||
|
:umad-rate 0.1
|
||||||
|
:diploid-flip-rate 0.1
|
||||||
|
:variation {;:umad 0.8
|
||||||
|
;:diploid-flip 0.2
|
||||||
|
:umad 1
|
||||||
|
}
|
||||||
|
:elitism false
|
||||||
|
:diploid false})
|
||||||
|
|
||||||
#_(gp/gp {:instructions propeller.problems.software.smallest/instructions
|
#_(gp/gp {:instructions propeller.problems.software.smallest/instructions
|
||||||
:error-function propeller.problems.software.smallest/error-function
|
:error-function propeller.problems.software.smallest/error-function
|
||||||
:max-generations 500
|
:max-generations 500
|
||||||
:population-size 500
|
:population-size 500
|
||||||
:max-initial-plushy-size 100
|
:max-initial-plushy-size 200 ;100
|
||||||
:step-limit 200
|
|
||||||
:parent-selection :lexicase
|
|
||||||
:tournament-size 5
|
|
||||||
:umad-rate 0.1
|
|
||||||
:variation {;:umad 0.8
|
|
||||||
;:flip 0.2
|
|
||||||
:umad 1
|
|
||||||
}
|
|
||||||
:elitism false
|
|
||||||
:diploid false})
|
|
||||||
|
|
||||||
(gp/gp {:instructions propeller.problems.software.smallest/instructions
|
|
||||||
:error-function propeller.problems.software.smallest/error-function
|
|
||||||
:max-generations 500
|
|
||||||
:population-size 500
|
|
||||||
:max-initial-plushy-size 200 ;100
|
|
||||||
:step-limit 200
|
:step-limit 200
|
||||||
:parent-selection :lexicase
|
:parent-selection :lexicase
|
||||||
:tournament-size 5
|
:tournament-size 5
|
||||||
:umad-rate 0.1
|
:umad-rate 0.1
|
||||||
|
:diploid-flip-rate 0.1
|
||||||
:variation {:umad 0.8
|
:variation {:umad 0.8
|
||||||
:flip 0.2
|
:diploid-flip 0.2
|
||||||
;:umad 1
|
;:umad 1
|
||||||
}
|
}
|
||||||
:elitism false
|
:elitism false
|
||||||
|
@ -99,6 +99,7 @@
|
|||||||
(:umad-rate argmap))
|
(:umad-rate argmap))
|
||||||
;
|
;
|
||||||
(< prob (+ xover-prob umad-prob flip-prob))
|
(< prob (+ xover-prob umad-prob flip-prob))
|
||||||
(diploid-flip (:plushy (selection/select-parent pop argmap)) flip-prob)
|
(diploid-flip (:plushy (selection/select-parent pop argmap))
|
||||||
|
(:diploid-flip-rate argmap))
|
||||||
;
|
;
|
||||||
:else (:plushy (selection/select-parent pop argmap))))})
|
:else (:plushy (selection/select-parent pop argmap))))})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user