Ejemplo n.º 1
0
  def test05_compute_cmc(self):

    # sanity checks
    self.assertTrue(os.path.exists(SCORES_4COL_CMC))
    self.assertTrue(os.path.exists(SCORES_5COL_CMC))

    from bob.measure.script.plot_cmc import main
    self.assertEqual(main(['--self-test', '--score-file', SCORES_4COL_CMC, '--log-x-scale']), 0)
    self.assertEqual(main(['--self-test', '--score-file', SCORES_5COL_CMC, '--parser', '5column']), 0)
Ejemplo n.º 2
0
    def test05_compute_cmc(self):

        # sanity checks
        self.assertTrue(os.path.exists(SCORES_4COL_CMC))
        self.assertTrue(os.path.exists(SCORES_5COL_CMC))

        from bob.measure.script.plot_cmc import main
        self.assertEqual(
            main([
                '--self-test', '--score-file', SCORES_4COL_CMC, '--log-x-scale'
            ]), 0)
        self.assertEqual(
            main([
                '--self-test', '--score-file', SCORES_5COL_CMC, '--parser',
                '5column'
            ]), 0)
Ejemplo n.º 3
0
  def test03_apply_threshold(self):

    # sanity checks
    self.assertTrue(os.path.exists(TEST_SCORES))

    from bob.measure.script.apply_threshold import main
    cmdline = '--scores=%s --self-test' % (TEST_SCORES,)
    self.assertEqual(main(cmdline.split()), 0)
Ejemplo n.º 4
0
    def test03_apply_threshold(self):

        # sanity checks
        self.assertTrue(os.path.exists(TEST_SCORES))

        from bob.measure.script.apply_threshold import main
        cmdline = '--scores=%s --self-test' % (TEST_SCORES, )
        self.assertEqual(main(cmdline.split()), 0)
Ejemplo n.º 5
0
  def test04_compute_perf_5col(self):
   
    # sanity checks
    self.assertTrue(os.path.exists(DEV_SCORES_5COL))
    self.assertTrue(os.path.exists(TEST_SCORES_5COL))

    from bob.measure.script.compute_perf import main
    cmdline = '--devel=%s --test=%s --parser=bob.measure.load.split_five_column --self-test' % (DEV_SCORES_5COL, TEST_SCORES_5COL)
    self.assertEqual(main(cmdline.split()), 0)
Ejemplo n.º 6
0
  def test01_compute_perf(self):
   
    # sanity checks
    self.assertTrue(os.path.exists(DEV_SCORES))
    self.assertTrue(os.path.exists(TEST_SCORES))

    from bob.measure.script.compute_perf import main
    cmdline = '--devel=%s --test=%s --self-test' % (DEV_SCORES, TEST_SCORES)
    self.assertEqual(main(cmdline.split()), 0)
Ejemplo n.º 7
0
    def test02_eval_threshold(self):

        # sanity checks
        self.assertTrue(os.path.exists(DEV_SCORES))

        from bob.measure.script.eval_threshold import main

        cmdline = "--scores=%s --self-test" % (DEV_SCORES,)
        self.assertEqual(main(cmdline.split()), 0)
Ejemplo n.º 8
0
    def test04_compute_perf_5col(self):

        # sanity checks
        self.assertTrue(os.path.exists(DEV_SCORES_5COL))
        self.assertTrue(os.path.exists(TEST_SCORES_5COL))

        from bob.measure.script.compute_perf import main
        cmdline = '--devel=%s --test=%s --parser=bob.measure.load.split_five_column --self-test' % (
            DEV_SCORES_5COL, TEST_SCORES_5COL)
        self.assertEqual(main(cmdline.split()), 0)
Ejemplo n.º 9
0
    def test01_compute_perf(self):

        # sanity checks
        self.assertTrue(os.path.exists(DEV_SCORES))
        self.assertTrue(os.path.exists(TEST_SCORES))

        from bob.measure.script.compute_perf import main
        cmdline = '--devel=%s --test=%s --self-test' % (DEV_SCORES,
                                                        TEST_SCORES)
        self.assertEqual(main(cmdline.split()), 0)