code: def sign2bin(matrix):
      return np.where(matrix > 0, 1, 0).astype(int)
  
file_path: neupy/neupy/algorithms/memory/bam.py
imports: import random
  import numpy
  from numpy.core.umath_tests import inner1d
  from neupy.utils import format_data
  from neupy.exceptions import NotTrained
  from .base import DiscreteMemory
label_desc: Use image node_id 2 for calling a global function with example usage: sign2bin(matrix) and returns: np