-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba5bfd5
commit 5397df4
Showing
4 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
from typing import Callable | ||
from typing_extensions import TypeAlias | ||
|
||
from ..utils.aliases import array2D, array1D | ||
|
||
|
||
FunctionToMinimize: TypeAlias = Callable[[array1D], float] | ||
"""usual (vector -> value) function to minimize""" | ||
|
||
|
||
SetFunctionToMinimize: TypeAlias = Callable[[array2D], array1D] | ||
""" | ||
(population -> scores) function to minimize | ||
it is like a vectorized version of usual (vector -> value) function | ||
performing to all population samples in the one call | ||
but it can be written in more optimal way to speed up the calculations; | ||
also it can contain any logic due to samples relations and so on -- depends on the task | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters