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