From bf6266b15c76bcc85059f0af2583fcaf22a89c1c Mon Sep 17 00:00:00 2001 From: Tony-HYX <605698554@qq.com> Date: Sat, 30 Dec 2023 21:23:21 +0800 Subject: [PATCH] [ENH] Minor changes --- abl/utils/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/abl/utils/utils.py b/abl/utils/utils.py index 8f29a02..1e10c21 100644 --- a/abl/utils/utils.py +++ b/abl/utils/utils.py @@ -157,6 +157,7 @@ def restore_from_hashable(x): def tab_data_to_tuple(X, y, reasoning_result = 0): ''' Convert a tabular data to a tuple by adding a dimension to each element of X and y. The tuple contains three elements: data, label, and reasoning result. + If X is None, return None. ''' if X is None: return None