kaz-Anova / StackNet

StackNet is a computational, scalable and analytical Meta modelling framework
MIT License
1.32k stars 344 forks source link

Failed to generate sparse file #74

Closed gdragone1 closed 5 years ago

gdragone1 commented 5 years ago

Error showed as follows: image

AdityaSoni19031997 commented 5 years ago

There's probably a bug in your code.

gdragone1 commented 5 years ago

There's probably a bug in your code.

Thank you.But I don't know how to fix it.

morenoh149 commented 5 years ago

share your code

goldentom42 commented 5 years ago

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

goldentom42 commented 5 years ago

BTW writing to libsvm format can be done using sklearn dump_svmllight

hope this helps.

AdityaSoni19031997 commented 5 years ago

When did dump_svmlight came? Thanks, didn't know about this at all.

goldentom42 commented 5 years ago

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.

gdragone1 commented 5 years ago

Thank you ! It works.