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))
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)