ysig / GraKeL

A scikit-learn compatible library for graph kernels
https://ysig.github.io/GraKeL/
Other
588 stars 96 forks source link

MultiscaleLaplacianFast parse_input doesn't accept length one input #39

Closed yemanbh closed 4 years ago

yemanbh commented 4 years ago

Implementation parse_input doesn't consider when every input is of length one with data type graph. To be consistent with the other kernels, I have added

elif type(x) is Graph: pass

ysig commented 4 years ago

Fixed in latest commit https://github.com/ysig/GraKeL/commit/f67ddd036a8a2c2815070d333d382a84b2157aab

Thanks for your feedback!