How to use Isolation Forest

前端 未结 3 896
梦如初夏
梦如初夏 2020-12-29 05:35

I am trying to detect the outliers to my dataset and I find the sklearn\'s Isolation Forest. I can\'t understand how to work with it. I fit my training data in it and it giv

3条回答
  •  無奈伤痛
    2020-12-29 06:36

    -1 represents the outliers (according to the fitted model). See IsolationForest example for a nice depiction of the process. If you have some prior knowledge, you could provide more parameters to get a more accurate fitting. For example, if you know the contamination (proportion of outliers in the data set) you could provide it as an input. By default it is assumed to be 0.1. See description of the parameters here.

提交回复
热议问题