コード例 #1
0
def debugTest(modelCreator):
    corpus = bachChorales.loadOneMelody()
    corpus[0].show()
    corpus = modelCreator.normalizeCorpus(corpus)
    # corpus[0].show("text")

    tester = Tester(corpus, modelCreator)

    model = modelCreator.createModel(corpus)
    print model.dists
    print tester.testModel(model, corpus)
コード例 #2
0
def debugTest(modelCreator):
  corpus = bachChorales.loadOneMelody()
  corpus[0].show()
  corpus = modelCreator.normalizeCorpus(corpus)

  tester = Tester(corpus, modelCreator)

  model = modelCreator.createModel(corpus)
  print model.dists
  print "(correct count, incorrect count, error)"
  print tester.testModel(model, corpus)