code: def test_hessdiag(self):
      x_train, x_test, y_train, y_test = simple_classification()
      params = dict(
          weight=init.Uniform(-0.1, 0.1), bias=init.Uniform(-0.1, 0.1)
      )
  
      nw = algorithms.HessianDiagonal(
          network=[
              layers.Input(10),
              layers.Sigmoid(20, **params),
              layers.Sigmoid(1, **params),
          ],
          step=0.1,
          shuffle_data=False,
          verbose=False,
          min_eigval=0.1,
      )
      nw.train(x_train, y_train, epochs=50)
      self.assertGreater(0.2, nw.errors.train[-1])
  
file_path: neupy/tests/algorithms/gd/test_hessdiag.py
imports: from functools import partial
  from neupy import algorithms, layers
  from neupy import init
  from helpers import compare_networks
  from helpers import simple_classification
  from base import BaseTestCase
label_desc: Use image node_id 1 for calling the HessianDiagonalTestCase obj's underlying member method code with example usage: obj.test_hessdiag() without return types