Open nktaushanov opened 6 years ago
There is an issue having negative leaf value when using a Decision tree model (other than -1).
127.0.0.1:6379> ML.FOREST.ADD myforst 0 . NUMERIC 1 0.1 .l LEAF 1 .r LEAF -1 OK 127.0.0.1:6379> ML.FOREST.ADD myforst 1 . NUMERIC 1 0.1 .l LEAF 1 .r LEAF -2 Error: Connection reset by peer
https://github.com/RedisLabsModules/redis-ml/blob/master/src/forest.c#L76
It seems like this is the reason.
This should fix the issue IMO: https://github.com/RedisLabsModules/redis-ml/pull/9
@shaynativ this is an important one-line fix... it also prevents a huge memory leak. Please approve? 😄
There is an issue having negative leaf value when using a Decision tree model (other than -1).
https://github.com/RedisLabsModules/redis-ml/blob/master/src/forest.c#L76
It seems like this is the reason.