code: def predict_w(self, data3d, voxelsize_mm, weight, label0=0, label1=1):
          
          scores = self.scores(data3d, voxelsize_mm)
          out = scores[label1] > (weight * scores[label0])
  
          return out
docs: segmentation with weight factor
          :param data3d:
          :param voxelsize_mm:
          :param weight:
          :return: