Commit 87979a85 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Implementing different score calibration mechanisms

parent d68c779b
Pipeline #57405 failed with stages
in 3 minutes and 24 seconds
......@@ -178,5 +178,8 @@ def rfw(ctx, scores, output, titles, percentile, **kargs):
"""Standard demographics analysis using the CASIA AFRICA dataset"""
rfw_report(
scores, output, percentile=percentile, titles=titles,
scores,
output,
percentile=percentile,
titles=titles,
)
......@@ -46,8 +46,7 @@ test:
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- bob-devel {{ bob_devel }}.*
requires:
- pytest
- pytest-cov
- coverage
......
......@@ -6,19 +6,34 @@ from bob.extension import rc
import logging
import click
from bob.extension.scripts.click_helper import ConfigCommand
from bob.extension.scripts.click_helper import ResourceOption
from bob.extension.scripts.click_helper import verbosity_option
default_protocol="mobile0-male-female"
@click.command()
@click.option(
"--pipeline",
"-p",
entry_point_group="bob.bio.pipeline",
required=True,
help="Vanilla biometrics pipeline composed of a scikit-learn Pipeline and a BioAlgorithm",
cls=ResourceOption,
)
@click.option(
"--output-path",
default=rc.get("bob.bio.demographics.path"),
help=f'Output path. Default to: {rc.get("bob.bio.demographics.path")}',
)
@click.option(
"--protocol", default="mobile0-male-female", help=f"Mobio protocol",
"--protocol", default=default_protocol, help=f"Default mobio protocol: {default_protocol}",
)
@click.option("--sge", is_flag=True)
def run(output_path, protocol, sge):
def run(pipeline, output_path, protocol, sge):
import ipdb; ipdb.set_trace()
## PLEASE SET
# bob config set bob.bio.demographics.path [OUTPUT-PATH]
......
......@@ -36,12 +36,27 @@ setup(
"demographics = bob.bio.demographics.script.demographics:demographics",
],
"bob.bio.demographics.cli": [
"reports = bob.bio.demographics.script.reports:reports",
"scores = bob.bio.demographics.script.score_level_fairness:score_level_fairness",
"calibration = bob.bio.demographics.script.calibration:calibration",
],
"bob.bio.demographics.scores.cli": [
"mobio = bob.bio.demographics.script.score_level_fairness_commands:mobio",
"meds = bob.bio.demographics.script.score_level_fairness_commands:meds",
"rfw = bob.bio.demographics.script.score_level_fairness_commands:rfw",
"morph = bob.bio.demographics.script.score_level_fairness_commands:morph",
],
"bob.bio.demographics.reports.cli": [
"meds = bob.bio.demographics.script.commands:meds",
"morph = bob.bio.demographics.script.commands:morph",
"mobio = bob.bio.demographics.script.commands:mobio",
"casia-africa = bob.bio.demographics.script.commands:casia_africa ",
"rfw = bob.bio.demographics.script.commands:rfw ",
],
"bob.bio.demographics.calibration.cli": [
"mobio = bob.bio.demographics.script.calibration_commands:mobio",
],
},
# check classifiers, add and remove as you see fit
# full list here: https://pypi.org/classifiers/
......@@ -58,4 +73,3 @@ setup(
"Topic :: Software Development :: Libraries :: Python Modules",
],
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment