Skip to content
Snippets Groups Projects

Supporting the CSVWriter in our evaluation scripts

Merged Tiago de Freitas Pereira requested to merge csvsupport into master

So far bob bio evaluate (and it's siblings) does not have support for scores written with CSVScoreWriter (bob bio pipelines vanilla-biometrics --write-metadata-scores).

This MR fixes that

Merge request reports

Pipeline #51754 passed

Pipeline passed for e00148b3 on csvsupport

Test coverage 84.00% (0.00%) from 4 jobs

Merged by Amir MOHAMMADIAmir MOHAMMADI 4 years ago (Jun 25, 2021 2:07pm UTC)

Loading

Pipeline #51821 passed

Pipeline passed for f364ccb0 on master

Test coverage 83.50% (0.00%) from 4 jobs
Deployed to py‎pi‎ 3 years ago
Deployed to sta‎ble‎ 3 years ago
Deployed to be‎ta‎ 4 years ago

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 7645d984 - Apply suggestion to bob/bio/base/score/load.py

    Compare with previous version

  • added 1 commit

    • 4e00dd4f - Apply suggestion to bob/bio/base/score/load.py

    Compare with previous version

  • resolved all threads

  • added 1 commit

    • a541988e - Apply suggestion to bob/bio/base/score/load.py

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • There you go.

    Green again

  • Yannick DAYER added 1 commit

    added 1 commit

    • fbf8f2bc - Add a score-generation option for the CSV format

    Compare with previous version

  • The gen command can now generate CSV scores.

  • Yannick DAYER added 1 commit

    added 1 commit

    • fe0e2a21 - Better check for CSV files extension

    Compare with previous version

  • 544 585
    545 586 The last element of the line (which is the score) will be transformed to float, the other elements will be str
    546 587 """
    547 opened = open_file(filename, "rb")
    548 if sys.version_info.major > 2:
    588 if iscsv(filename):
    589 df = pd.read_csv(filename)
    590 for _, row in df.iterrows():
  • Yannick DAYER added 1 commit

    added 1 commit

    • f5a735d8 - Use CSV reader instead of pandas

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading