ariaghora / libdtree

A C single-header-file decision tree classifier library
7 stars 0 forks source link

floating point data type #1

Open mu578 opened 1 year ago

mu578 commented 1 year ago

Hello,

you should let people decide the fp type (with some kind of define macro for the type), for instance, if you interface with cython double rep is default in python, on the over hand, in an embedded context _Float16 works pretty well these days.

ariaghora commented 1 year ago

@mu578 Although this project can only be considered a PoC at its current state, I agree with you. Using stb style macros to override the fp would be a good idea, I think. I'll see what I can do with this. Thanks!

ps: PRs are welcome.