bsmart.scans.DEAP
Optimisation using genetic algorithm DEAP
BSMArt scan written by M. Goodsell
Requires:
pip3 install deap
Information
BSMArt Name: DEAP
- Requires:
deap
numpy
Settings:
Points: Int
- DEAP
Population Size: Int
Generations: Int
Global Only: Bool
n_cores: Int
- class bsmart.scans.DEAP.NewScan(inputs, log)[source]
Bases:
ScanScanner class for NF Scans
- get_losses(observables)[source]
Returns a list of losses.
- The C-function loss should be zero if the observable is within allowed bounds, and greater than zero outside it.
- If we include a validity condition, then other observables, evaluated afterwards, will be returned as NaN.
-> We should assign these the maximum loss ~ 710.
This is then compatible with the explicit use of ‘hierarchical observables’, where all other observables are set to the maximum.
- initialise()[source]
method to allow the user scan to overload run settings etc during the initialisation process