class_docstr: Test the OHE vector encoder 
docstr: Check whether decode_probabilities returns valid scaled-to-1 terms
docstr_tok: ["Check","whether","decode_probabilities","returns","valid","scaled-to-1","terms"]
code: def test_check_probabilities(self):
      """
      Check whether decode_probabilities returns valid scaled-to-1 terms
      """
      # Generate random list of T/F
      np.random.seed(1)
      data = np.random.rand(10) > 0.5
  
      enc = BinaryEncoder()
      enc.prepare(data)
  
      # Make data to represent random weights that do not sum to 1
      torch.manual_seed(1)
      wt_vec = torch.rand(size=(len(data), len(enc.map))) * 10
  
      _, probs, _ = enc.decode_probabilities(wt_vec)
      self.assertTrue(np.all([np.isclose(sum(i), 1) for i in probs]))
  
file_path: lightwood/tests/unit_tests/encoder/categorical/test_binary.py
imports: import unittest
  import torch
  from torch import Tensor
  import numpy
  from lightwood.encoder.categorical.binary import BinaryEncoder
  from lightwood.helpers.constants import _UNCOMMON_WORD
label_desc: Use image node_id 3 for calling the TestBinary obj's underlying member method code with example usage: obj.test_check_probabilities() without return types