def resample_model(self):
        # Update the parents.
        # THIS MUST BE DONE IMMEDIATELY FOLLOWING WEIGHT UPDATES!
        for p in self.data_list:
            p.resample()

        # Update the bias model given the parents assigned to the background
        self.bias_model.resample(self.data_list)

        # Update the impulse model given the parents assignments
        self.impulse_model.resample(self.data_list)

        # Update the network model
        self.network.resample(data=(self.weight_model.A, self.weight_model.W))

        # Update the weight model given the parents assignments
        self.weight_model.resample(self.data_list)
Perform one iteration of the Gibbs sampling algorithm.
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/models.py/DiscreteTimeNetworkHawkesModelSpikeAndSlab.resample_model