コード例 #1
0
class StatsHandler(RequestHandler):
    def initialize(self, mongo_uri):
        self.stats = TrainStats(mongo_uri)

    def get(self, experiment_id = None):
        if not experiment_id:
            self.render("index.html", **self.stats.get_all_experiments())
        else:
            self.render("experiment.html", **self.stats.get_stats(experiment_id))
コード例 #2
0
class StatsHandler(RequestHandler):
    def initialize(self, mongo_uri):
        self.stats = TrainStats(mongo_uri)

    def get(self, experiment_id=None):
        if not experiment_id:
            self.render("index.html", **self.stats.get_all_experiments())
        else:
            self.render("experiment.html",
                        **self.stats.get_stats(experiment_id))
コード例 #3
0
 def initialize(self, mongo_uri):
     self.stats = TrainStats(mongo_uri)
コード例 #4
0
 def initialize(self, mongo_uri):
     self.stats = TrainStats(mongo_uri)