def updateWindow(window,buf,maxContainSize):
if len(buf) >= maxContainSize:#??buf??
print "buffer full "
window = clusteringReminMost(window)
print "window size after clustering without adding buffer :",len(window)
for i in buf:
window.append(i)
ilf = IsolationForest(n_estimators=60)
ilf.fit(window)
print "isolation update finished"
else: #???????buf????
print "higher than threads"
for i in buf:
window.append(i)
ilf = IsolationForest(n_estimators=60)
ilf.fit(window)
print "isolation update finished"
return window,ilf
评论列表
文章目录