Sklearn adapter function tovw
does not support unsigned integers in features
#4609
Labels
tovw
does not support unsigned integers in features
#4609
Mitigation
A user should use signed integer types and not unsigned integer types when passing to the
sklearn
adapter functions.Details
The
tovw
function usesdump_svmlight_file
to convert to a format that can easily construct VW text examples.This function does not support input of unsigned integers, it requires signed due to the
pyx
code internally in sklearn.Fails:
Succeeds:
The same input works when passed to SKLearn itself:
To fix this one way is to avoid using the
dump_svmlight_file
function. It is used currently as a way to easily convert the dataframe to vw text format.The text was updated successfully, but these errors were encountered: