Skip to content

Commit

Permalink
Update SelectionStrategy signature
Browse files Browse the repository at this point in the history
  • Loading branch information
soldatmat committed Feb 14, 2024
1 parent 8b812f7 commit 30726f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ which should return the sequences' fitness values as a subtype of `AbstarctVecto

### SelectionStrategy
Structures derived from `SelectionStrategy` have to implement the following method:
`(::CustomMutagenesis)(parents::AbstractVector{Vector{Char}})`
`(::CustomSelectionStrategy)(variants::AbstractVector{Variant})`
which should return a vector of newly created sequences as a subtype of `AbstractVector{Vector{Char}}`.
This method should not alter `parents`!

Expand Down
2 changes: 1 addition & 1 deletion src/types/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Specifies the algorithm used to select new parent sequences from a library of se
Inherit this type to define a custom selection stratgy.
Structures derived from this type have to implement the following method:
`(::CustomSelectionStrategy)(sequence_fitness_pairs::AbstractVector{Variant})`
`(::CustomSelectionStrategy)(variants::AbstractVector{Variant})`
This method should return vector of selected sequences as a subtype of `AbstractVector{<:AbstractVector{Char}}`.
Structures derived from this type can have a parameter `k` which specifies the number of sequences that should be selected.
Expand Down

0 comments on commit 30726f8

Please sign in to comment.