79175678

Date: 2024-11-10 20:17:53
Score: 1.5
Natty:
Report link

There are two ways to create a instance of LocalOutlierFactor

  1. clf= LocalOutlierFactor(n_neighbors=n_neighbors, contamination=contamination, novelty=False)

in this case we can use : clf.fit_predict(X)

  1. clf = LocalOutlierFactor(n_neighbors=n_neighbors, contamination=contamination, novelty=True)

in this case we should use : clf.predict(X)

thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: sanjaykumar81