예제 #1
0
def printResults(domains, planners, outFile):
    doc = latex.Document("article")
    doc.add_package("geometry", "a3paper", "margin=2.5cm", "landscape")
    doc.add_package("scrtime")
    doc.add_package("amsmath")
    doc.add_package("amssymb")
    doc.add_package("color")
    doc.add_package("colortbl")

    doc.add_definition(r"\setlength{\parindent}{0cm}")
    doc.add(r"\section*{PROST: \today\ \thistime}")

    for domainName in domains:
        doc.add(r"\subsection*{Rewards: %s}" % domainName)
        addRewardTable(doc, domains[domainName], planners)

        doc.add(r"\subsection*{IPPC Scores: %s}" % domainName)
        addIPPCScoreTable(doc, domains[domainName], planners)

    doc.add(r"\subsection*{Total Time (in minutes)}")
    addTotalTimeTable(doc, domains, planners)

    doc.add(r"\subsection*{IPPC Scores: Total}")
    addTotalIPPCScoreTable(doc, domains, planners)

    f = open(outFile, 'w+')
    doc.render(f)
    f.close()
예제 #2
0
def compare_config_pairs(suite, results, pairs, comparator, title):
    table_data = defaultdict(lambda: "missing")
    for config1, config2 in pairs:
        pairing = r"%s vs.\ %s" % (config1, config2)
        pair_data = compare_config_pair(suite, results, config1, config2,
                                        comparator)
        for domain, comparison in pair_data.iteritems():
            table_data[domain, pairing] = comparison
    table = latex.Table(title=title, data=table_data)
    latex.Document([table]).dump()
예제 #3
0
def domain_pairing_summaries(suite, results, pairings, aggregator, title):
    table_data = defaultdict(lambda: "missing")
    for config1, config2 in PAIRS:
        pairing = r"%s vs.\ %s" % (config1, config2)
        pair_data = domain_pairing_summary(suite, results, config1, config2,
                                           aggregator)
        for domain, entry in pair_data.iteritems():
            table_data[domain, pairing] = str(entry)
    table = latex.Table(title=title, data=table_data)
    latex.Document([table]).dump()
예제 #4
0
 def report(self):
     table = self.get_latex_table()
     latex.Document([table]).dump()