title: What is the difference between decision function and score_samples in isolation_forest in SKLearn
body: <p>I have read the documentation of the decision function and score_samples <a href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.IsolationForest.html#sklearn.ensemble.IsolationForest.decision_function" rel="nofollow noreferrer">here</a>, but could not figure out what is the difference between these two methods and which one should I use for an outlier detection algorithm.</p>
  <p>Any help would be appreciated.</p>