Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.vein
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.vein
Merge requests
!26
Biowave
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Biowave
biowave/bob.bio.vein:biowave
into
master
Overview
0
Commits
136
Pipelines
0
Changes
144
Closed
Olegs NIKISINS
requested to merge
biowave/bob.bio.vein:biowave
into
master
8 years ago
Overview
0
Commits
136
Pipelines
0
Changes
144
Expand
Merge biowave branch into master
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e40b15e5
136 commits,
8 years ago
144 files
+
14306
−
36
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
144
Search (e.g. *.vue) (Ctrl+P)
bob/bio/vein/algorithms/algorithms/AlgorithmBase.py
0 → 100644
+
41
−
0
Options
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 7 17:06:06 2016
@author: onikisins
"""
class
AlgorithmBase
(
object
):
"""
Base class for the matching algorithms used in the AlignedMatching class.
"""
def
__init__
(
self
):
pass
def
score
(
self
,
enroll
,
probe
):
"""
score(model, probe) -> score
This function will compute the score between the given model and probe.
It must be overwritten by derived classes.
**Parameters:**
``enroll`` : :py:class:`object`
The enroll to compare the probe with.
``probe`` : :py:class:`object`
The probe object to compare the model with.
**Returns:**
``score`` : :py:class:`float`
A similarity between ``model`` and ``probe``.
Higher values define higher similarities.
"""
raise
NotImplementedError
(
"
score method is not implemented, must overwrite in the child class
"
)
Loading