RedisLabsModules / redisml

Machine Learning Model Server
http://redisml.io
Other
305 stars 44 forks source link

random forest problem #30

Open sergioarmgpl opened 5 years ago

sergioarmgpl commented 5 years ago

This is the secuence of my commands: ML.FOREST.ADD myforestx 0 . CATEGORIC sex "male" .L LEAF 1 .R LEAF 0 ML.FOREST.RUN myforestx sex:male ML.FOREST.RUN myforestx sex:female

But my runs always returned 1, any idea? or how it works this option in redis-ml

jairelton commented 5 years ago

Same issue here:

ML.FOREST.ADD myforest 0 . CATEGORIC sex male .l LEAT 5 .r LEAF 6
OK
ML.FOREST.RUN myforest sex:male CLASSIFICATION
"5"
ML.FOREST.RUN myforest sex:female CLASSIFICATION
"5"

But it works with numbers:

ML.FOREST.ADD myforest 0 . CATEGORIC sex 1 .l LEAT 5 .r LEAF 6
OK
ML.FOREST.RUN myforest sex:1 CLASSIFICATION
"5"
ML.FOREST.RUN myforest sex:2 CLASSIFICATION
"6"