jundongl / scikit-feature

open-source feature selection repository in python
GNU General Public License v2.0
1.51k stars 447 forks source link

relieF error #56

Open maxlarosa opened 4 years ago

maxlarosa commented 4 years ago

Hi, when I run relieF, I got the following error:

File "C:\Users\Massimo\Anaconda3\lib\site-packages\skfeature\function\similarity_based\reliefF.py", line 101, in reliefF score += near_miss_term[label]/(k*p_dict[label])

TypeError: ufunc 'add' output (typecode 'O') could not be coerced to provided output parameter (typecode 'd') according to the casting rule ''same_kind''

Can you help me please?

Massimo