ml icon indicating copy to clipboard operation
ml copied to clipboard

[Enhancement] IsolationForest is in the roadmap?

Open kreynaldo opened this issue 6 years ago • 4 comments

I can't find a good implementation of iForest in JavaScript. I need it for an anomaly detection system, and perhaps you already have it in your roadmap.

kreynaldo avatar Jun 01 '18 21:06 kreynaldo

Hello!

No iForest in not on our roadmap (to be honest we do not really have a roadmap, we just do things as we need them 😄)

You're welcome to build your own implementation, we'd gladly include it to the ml project if you'd like to. Otherwise you can check out libsvm-js, we use it for classification but it also has a "one class" mode that is well-suited for anomaly detection.

stropitek avatar Jun 04 '18 08:06 stropitek

Ok, I'll take look at your code and try to replicate your standards before contributing a solution. I think that IsolationForest is similar to RandomForest (which you already have included). The hypotesis behind IsolationForest is that anomalies are isolated faster (shorter paths on average), and outperform other known algorithms for the same purpose in many respects.

kreynaldo avatar Jun 04 '18 13:06 kreynaldo

Cool! Would you like us to prepare a repo with some boilerplate on the mljs organization (with our up-to-date eslint rules, testing environment etc...), or would you prefer to start a repo on your own account?

stropitek avatar Jun 04 '18 14:06 stropitek

No needed, I'll start with some existing java implementations and I'll come back to you when I've figure it out.

kreynaldo avatar Jun 04 '18 14:06 kreynaldo