Skip to content

Options to save RunningMetric plots #233

Answered by blankjul
rabiu42000 asked this question in Q&A
Discussion options

You must be logged in to vote

This is possible but with a more hacky solution. Simply define your own running metric based on ours and store the files.
You can also define it more generic in the class itself.

import matplotlib.pyplot as plt
import numpy as np

from pymoo.util.termination.f_tol import MultiObjectiveSpaceToleranceTerminationWithRenormalization
from pymoo.visualization.video.callback_video import AnimationCallback


class RunningMetric(AnimationCallback):

    def __init__(self,
                 delta_gen,
                 n_plots=4,
                 only_if_n_plots=False,
                 key_press=True,
                 **kwargs) -> None:

        super().__init__(**kwargs)
        self.delta_gen = del…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rabiu42000
Comment options

Answer selected by rabiu42000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants