-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
creating a new parent class - SimilarityMeasures with two functions.
The "calculate" function executes the calculation, that is necessary for the point selection. For the implementation of the loss functions in the keras compiler, we need to sum over the losses, which is done by the call function. Each child class defines one similarity measurement and inherits the calculate function.
- Loading branch information
knikolaou
committed
Nov 5, 2021
1 parent
6371abd
commit fde31a0
Showing
6 changed files
with
186 additions
and
28 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
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,16 @@ | ||
from .similarity_measures import \ | ||
SimilarityMeasures, \ | ||
CosineSim, \ | ||
MSE, \ | ||
EuclideanDist, \ | ||
MahalanobisDist, \ | ||
AngleSim | ||
|
||
__all__ = [ | ||
"SimilarityMeasures", | ||
"CosineSim", | ||
"MSE", | ||
"EuclideanDist", | ||
"MahalanobisDist", | ||
"AngleSim" | ||
] |
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