def METHOD_NAME(self):
    metric = Metric({"name": "logloss"})
    loss_prev = None
    for _ in range(2):
        cat = CatBoostAlgorithm(self.params)
        cat.fit(self.X, self.y)
        y_predicted = cat.predict(self.X)
        loss = metric(self.y, y_predicted)
        if loss_prev is not None:
            assert_almost_equal(loss, loss_prev, decimal=3)
        loss_prev = loss