Ejemplo n.º 1
0
    def plot_results(self, samples):
        def should_plot(name):
            return conf.instance["visualize"]["plots_search"]["drawer"][name]

        plotter = DrawerPlotter(samples=samples,
                                output=Output(path=path.join(
                                    self.paths.image_path, "search"),
                                              format="png"))
Ejemplo n.º 2
0
    def plot_results(self, samples):
        def should_plot(name):
            return conf.instance["visualize"]["plots_search"]["emcee"][name]

        plotter = ZeusPlotter(samples=samples,
                              output=Output(path=path.join(
                                  self.paths.image_path, "search"),
                                            format="png"))

        if should_plot("corner"):
            plotter.corner()

        if should_plot("trajectories"):
            plotter.trajectories()

        if should_plot("likelihood_series"):
            plotter.likelihood_series()

        if should_plot("time_series"):
            plotter.time_series()
Ejemplo n.º 3
0
    def plot_results(self, samples):

        def should_plot(name):
            return conf.instance["visualize"]["plots_search"]["pyswarms"][name]

        plotter = PySwarmsPlotter(
            samples=samples,
            output=Output(path=path.join(self.paths.image_path, "search"), format="png")
        )

        if should_plot("contour"):
            plotter.contour()

        if should_plot("cost_history"):
            plotter.cost_history()

        if should_plot("trajectories"):
            plotter.trajectories()

        if should_plot("time_series"):
            plotter.time_series()
Ejemplo n.º 4
0
    def plot_results(self, samples):

        if not samples.pdf_converged:
            return

        def should_plot(name):
            return conf.instance["visualize"]["plots_search"]["ultranest"][
                name]

        plotter = UltraNestPlotter(samples=samples,
                                   output=Output(path=path.join(
                                       self.paths.image_path, "search"),
                                                 format="png"))

        if should_plot("cornerplot"):
            plotter.cornerplot()

        if should_plot("runplot"):
            plotter.runplot()

        if should_plot("traceplot"):
            plotter.traceplot()
Ejemplo n.º 5
0
    def __init__(self, samples, output: Output = Output()):

        self.samples = samples
        self.output = output