d9w / CartesianGeneticProgramming.jl

Cartesian Genetic Programming for Julia
Other
70 stars 25 forks source link

Ipcgp #18

Closed erwanlecarpentier closed 3 years ago

erwanlecarpentier commented 3 years ago

Added kwargs in CGPInd constructors so that a user can specify some elements. Here is an example with a user-specific buffer:

function IPCGPInd(cfg::NamedTuple)
    buffer = Array{Array{UInt8, 3}}(undef, cfg.rows * cfg.columns + cfg.n_in)
    fill!(buffer, zeros(UInt8, cfg.img_size))
    CartesianGeneticProgramming.CGPInd(cfg; buffer=buffer)
end
codecov-commenter commented 3 years ago

Codecov Report

Merging #18 (d737ec1) into master (f680e08) will decrease coverage by 0.29%. The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
- Coverage   76.68%   76.39%   -0.30%     
==========================================
  Files           8        8              
  Lines         296      305       +9     
==========================================
+ Hits          227      233       +6     
- Misses         69       72       +3     
Impacted Files Coverage Δ
src/evolution.jl 90.00% <75.00%> (-10.00%) :arrow_down:
src/config.jl 92.85% <80.00%> (-7.15%) :arrow_down:
src/individual.jl 78.63% <87.50%> (-0.32%) :arrow_down:
src/process.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f680e08...d737ec1. Read the comment docs.