class_docstr: The Test optimizer
class_docstr_tok: ["The","Test","optimizer"]
docstr: Performs w += rescale_grad * grad.
docstr_tok: ["Performs","w","+=","rescale_grad","*","grad","."]
code: def step(self, indices, weights, grads, states):
      """Performs w += rescale_grad * grad."""
      for index, weight, grad in zip(indices, weights, grads):
          self._update_count(index)
          lr = self._get_lr(index)
          wd = self._get_wd(index)
          grad = self.rescale_grad * grad
          weight[:] -= lr * (grad + wd * weight)
  
imports: import warnings
  import numpy
  from ..ndarray import NDArray, zeros, cast
  from ..util import is_np_array
label_desc: Use image node_id 3 for calling the Test obj's underlying member method code with example usage: obj.step(indices, weights, grads, states) without return types