byu-dml / d3m-dynamic-neural-architecture

1 stars 1 forks source link

rescore raises error on new metric #170

Closed bjschoenfeld closed 5 years ago

bjschoenfeld commented 5 years ago
Traceback (most recent call last):
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 579, in <module>
    main(sys.argv)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 575, in main
    handler(arguments, parser)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 537, in handler
    rescore_handler(arguments)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 416, in rescore_handler
    train_predictions, train_scores = rescore(score, train_data, 'train', problem)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 433, in rescore
    check_scores(scores, score[score_key], score_type)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 443, in check_scores
    check_scores(v1, v2, score_type)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 443, in check_scores
    check_scores(v1, v2, score_type)
  File ".../d3m-dynamic-neural-architecture/dna/__main__.py", line 441, in check_scores
    v2 = rescores[k]
KeyError: 'ndcg'
bjschoenfeld commented 5 years ago

fixed in adb7e01dd3b3c5fa8f4bec98ac0642251df0aac5