mirror of
https://github.com/Tencent/Metis.git
synced 2025-12-26 12:22:46 +00:00
Compare commits
No commits in common. "master" and "v0.3.0" have entirely different histories.
|
|
@ -198,6 +198,5 @@ docker ps
|
|||
查看三个容器(metis-db、metis-web、metis-svr)启动状态,如正常启动,则安装成功。
|
||||

|
||||
如安装成功,可以通过浏览器直接访问: `http://${IP}`
|
||||
注意:Metis依赖80和8080端口,腾讯云服务器默认开通了80但没有开通8080的外网访问权限,需要手动在安全组中增加对8080端口的放通。
|
||||
|
||||
请参考API使用说明进行API调用
|
||||
请参考API使用说明进行API调用
|
||||
|
|
@ -90,7 +90,6 @@ def normalize_time_series_by_max_min(split_time_series):
|
|||
time_series = split_time_series[0] + split_time_series[1][1:] + split_time_series[2] + split_time_series[3][1:] + split_time_series[4]
|
||||
max_value = np.max(time_series)
|
||||
min_value = np.min(time_series)
|
||||
normalized_time_series = [0.0]*len(time_series)
|
||||
if max_value - min_value > 0:
|
||||
normalized_time_series = list((np.array(time_series) - min_value) / float(max_value - min_value))
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ class Detect(object):
|
|||
statistic_result = self.statistic_obj.predict(time_series)
|
||||
ewma_result = self.ewma_obj.predict(time_series)
|
||||
polynomial_result = self.polynomial_obj.predict(time_series, window)
|
||||
if statistic_result == 0 or ewma_result == 0 or polynomial_result == 0 :
|
||||
iforest_result = self.iforest_obj.predict(time_series, window)
|
||||
if statistic_result == 0 or ewma_result == 0 or polynomial_result == 0 or iforest_result == 0:
|
||||
xgb_result = self.supervised_obj.predict(time_series, window, model_name)
|
||||
res_value = xgb_result[0]
|
||||
prob = xgb_result[1]
|
||||
|
|
|
|||
Loading…
Reference in New Issue