Skip to content

Commit

Permalink
changed default score transfer function to cubic (instead of quadratice)
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Mar 15, 2023
1 parent 84a0940 commit 10a5d81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nuad/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ def m13_substrings_of_length(length: int, except_indices: Iterable[int] = tuple(

def default_score_transfer_function(x: float) -> float:
"""
A quadratic transfer function.
A cubic transfer function.
:return:
max(0.0, x^2)
max(0.0, x^3)
"""
return max(0.0, x ** 2)
return max(0.0, x ** 3)


logger = logging.Logger('dsd', level=logging.DEBUG)
Expand Down

0 comments on commit 10a5d81

Please sign in to comment.