class_docstr: Base class for discrete memory networks.
  
  Notes
  -----
  - Input and output vectors should contain only binary values.
  
  Parameters
  ----------
  mode : {{``sync``, ``async``}}
      Specifies pattern recovery mode.
  
      - ``sync`` mode tries to recover pattern using all
        values from the input vector.
  
      - ``async`` mode choose randomly some values from the
        input vector and iteratively repeat this procedure.
        Number of iterations defines by the ``n_times``
        parameter.
  
      Defaults to ``sync``.
  
  n_times : int
      Available only in ``async`` mode. Identify number
      of random trials. Defaults to ``100``.
  
  {Verbose.verbose}
code: def __init__(self, mode="sync", n_times=100, verbose=False):
      self.mode = mode
      self.n_times = n_times
      self.weight = None
      super(DiscreteMemory, self).__init__(verbose=verbose)
  
file_path: neupy/neupy/algorithms/memory/base.py
imports: import numpy
  from neupy.core.properties import ChoiceProperty, IntProperty
  from neupy.core.config import Configurable
  from neupy.algorithms.base import BaseSkeleton
label_desc: Use image node_id 1 to create a new DiscreteMemory object from inherited base classes: BaseSkeleton, Configurable with example: obj = DiscreteMemory(mode, n_times, verbose)