Closed gdragone1 closed 5 years ago
There's probably a bug in your code.
There's probably a bug in your code.
Thank you.But I don't know how to fix it.
share your code
Hi there,
Please use if ytarget is not None:
instead of if target != None:
The latter does not work for numpy.arrays or pd.DataFrames
BTW writing to libsvm format can be done using sklearn dump_svmllight
hope this helps.
When did dump_svmlight came? Thanks, didn't know about this at all.
You're welcome.
I believe it has been there for some time, I would say at least a year but can't tell you for sure.
Thank you ! It works.
Error showed as follows: