You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And, the error is thrown in the last step where the column_group.columns doesn't match with the numbers of columns in the tensor. Seems like a simple error though.
The text was updated successfully, but these errors were encountered:
The error reported above is thrown when the rename op with lambda function is used in the workflow. @rnyak updated the notebook and removed those rename ops and I got another error with this updated notebook. Posting here in case it helps;
Failed to transform operator <nvtabular.ops.list_slice.ListSlice object at 0x7f4af5c768e0>
Traceback (most recent call last):
File "/model/nvt-examples/models/yoochoose_nvt/1/model.py", line 289, in _transform_tensors
tensors = column_group.op.transform(column_group.columns, tensors)
File "/usr/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/nvtabular/nvtabular/ops/list_slice.py", line 68, in transform
c = df[col]._column
File "/usr/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/usr/local/lib/python3.8/dist-packages/cudf/core/dataframe.py", line 723, in __getitem__
return self._get_columns_by_label(arg, downcast=True)
File "/usr/local/lib/python3.8/dist-packages/cudf/core/dataframe.py", line 1449, in _get_columns_by_label
new_data = super()._get_columns_by_label(labels, downcast)
File "/usr/local/lib/python3.8/dist-packages/cudf/core/frame.py", line 630, in _get_columns_by_label
return self._data.select_by_label(labels)
File "/usr/local/lib/python3.8/dist-packages/cudf/core/column_accessor.py", line 346, in select_by_label
return self._select_by_label_grouped(key)
File "/usr/local/lib/python3.8/dist-packages/cudf/core/column_accessor.py", line 408, in _select_by_label_grouped
result = self._grouped_data[key]
KeyError: 'category-list'
0804 20:52:35.319187 110 pb_stub.cc:555] KeyError: 'category-list'
At:
/usr/local/lib/python3.8/dist-packages/cudf/core/column_accessor.py(408): _select_by_label_grouped
/usr/local/lib/python3.8/dist-packages/cudf/core/column_accessor.py(346): select_by_label
/usr/local/lib/python3.8/dist-packages/cudf/core/frame.py(630): _get_columns_by_label
/usr/local/lib/python3.8/dist-packages/cudf/core/dataframe.py(1449): _get_columns_by_label
/usr/local/lib/python3.8/dist-packages/cudf/core/dataframe.py(723): __getitem__
/usr/lib/python3.8/contextlib.py(75): inner
/nvtabular/nvtabular/ops/list_slice.py(68): transform
/usr/lib/python3.8/contextlib.py(75): inner
/model/nvt-examples/models/yoochoose_nvt/1/model.py(293): _transform_tensors
/model/nvt-examples/models/yoochoose_nvt/1/model.py(263): _transform_tensors
/model/nvt-examples/models/yoochoose_nvt/1/model.py(263): _transform_tensors
/model/nvt-examples/models/yoochoose_nvt/1/model.py(143): execute
To reproduce the error, please check with @rnyak to get the notebook.
When we send the query,
_transform_tensors
functions gives the following error;When I print out the
column_group.columns
andtensors
in the_transform_tensors
function, I see the following;And, the error is thrown in the last step where the
column_group.columns
doesn't match with the numbers of columns in the tensor. Seems like a simple error though.The text was updated successfully, but these errors were encountered: