Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.measure bob.measure
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.measurebob.measure
  • Issues
  • #20
Closed
Open
Issue created Oct 28, 2016 by Manuel Günther@mguentherMaintainer

bin/bob_plot_cmc.py is not working as expected

The script to compute the open set recognition rate does not work as expected. When passing the --rank 1 option using a perfectly separable , the output of the script is:

Recognition rate for score file /mgunther/bob/bob.nightlies/src/bob.measure/bob/measure/data/scores-cmc-4col-open-set.txt is 0.00%

I think the reason is that in: https://gitlab.idiap.ch/bob/bob.measure/blob/master/bob/measure/script/plot_cmc.py#L93 we use the rankas the second parameter, while in https://gitlab.idiap.ch/bob/bob.measure/blob/master/bob/measure/__init__.py#L129 it is the third parameter. However, just using the right parameter (using keyword parameter as in https://gitlab.idiap.ch/bob/bob.measure/blob/master/bob/measure/script/plot_cmc.py#L126) does not work either.

@andre.anjos : I know that you like the docopt command line parser. I don't. I believe the argparse module is much more powerful as it automatically converts parameters to the desired data type, and automatically sets default options, if desired.

In docopt you have to specify all these by hand. Also, the handling of logging differs between other scripts (using argparse, where we have default functions to handle the logger setup in bob.bore.log) and yours, where you set the verbosity by hand (and you actually use different stages than in bob.core.log).

Assignee
Assign to
Time tracking