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