code: def test_training_epoch_accumulation(self):
      data, target = datasets.make_classification(
          30, n_features=10, n_classes=2
      )
  
      network = algorithms.GradientDescent(
          [
              layers.Input(10),
              layers.Sigmoid(3),
              layers.Sigmoid(1),
          ]
      )
      self.assertEqual(network.last_epoch, 0)
  
      network.train(data, target, epochs=10)
      self.assertEqual(network.last_epoch, 10)
  
      network.train(data, target, epochs=5)
      self.assertEqual(network.last_epoch, 15)
  
file_path: neupy/tests/algorithms/test_network_features.py
imports: from __future__ import unicode_literals
  import numpy
  from sklearn import datasets
  from neupy import algorithms, layers
  from neupy.algorithms.base import preformat_value
  from helpers import catch_stdout
  from base import BaseTestCase
label_desc: Use image node_id 1 for calling the NetworkMainTestCase obj's underlying member method code with example usage: obj.test_training_epoch_accumulation() without return types