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))
Example #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))
 def initialize(self, mongo_uri):
     self.stats = TrainStats(mongo_uri)
Example #4
0
 def initialize(self, mongo_uri):
     self.stats = TrainStats(mongo_uri)