Commit e22deb33 authored by nd-02110114's avatar nd-02110114
Browse files

🐛 fix logging

parent 973848a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ class MolecularFeaturizer(Featurizer):
        features.append(self._featurize(mol))
      except:
        logger.warning(
            "Failed to featurize datapoint %d. Appending empty array")
            "Failed to featurize datapoint %d. Appending empty array", i)
        features.append(np.array([]))

    features = np.asarray(features)
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ def one_hot_encode(val: Union[int, str],
  """
  if include_unknown_set is False:
    if val not in allowable_set:
      logger.warning("input {0} not in allowable set {1}:".format(
      logger.info("input {0} not in allowable set {1}:".format(
          val, allowable_set))

  # init an one-hot vector