Skip to content

Commit

Permalink
remove property annotator for threshold api
Browse files Browse the repository at this point in the history
  • Loading branch information
titicaca committed Apr 10, 2019
1 parent 32efbf3 commit 1de4e31
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/pyspark_iforest/ml/iforest.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,13 @@ def summary(self):
raise RuntimeError("No training summary available for this %s" %
self.__class__.__name__)

@property
@since("2.4.0")
def setThreshold(self, value):
"""
Set the anomaly score threshold for prediction, 0 < value < 1 .
"""
self._call_java("setThreshold", value)

@property
@since("2.4.0")
def getThreshold(self):
"""
Expand Down

0 comments on commit 1de4e31

Please sign in to comment.