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
Describe the bug
Target encoding relies on a target column being present even if we perform a transform operation.
Steps/Code to reproduce bug
Here are the screenshots (I provide the code below)
Code:
out = ['cats'] >> nvt.ops.TargetEncoding('target', kfold=1)
ds = nvt.Dataset(df)
wf = nvt.Workflow(out)
o = wf.fit_transform(ds).compute()
o
test = cudf.DataFrame(data={
'cats': list('abbcc')
})
test
wf.transform(nvt.Dataset(test))
test = cudf.DataFrame(data={
'cats': list('abbcc')
})
test['target'] = 0
test
wf.transform(nvt.Dataset(test)).compute()
Expected behavior
Transform should not rely on the target column being present in the dataset.
Providing a dummy column works, but should not be required.
The text was updated successfully, but these errors were encountered:
Describe the bug
Target encoding relies on a target column being present even if we perform a
transform
operation.Steps/Code to reproduce bug
Here are the screenshots (I provide the code below)
Code:
Expected behavior
Transform should not rely on the
target
column being present in the dataset.Providing a dummy column works, but should not be required.
The text was updated successfully, but these errors were encountered: