mirror of
https://github.com/Tencent/Metis.git
synced 2025-12-26 04:02:48 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf50841faf | ||
|
|
0a49a9b1ee | ||
|
|
8364184c46 | ||
|
|
8cbdc6dc93 | ||
|
|
5490207e81 | ||
|
|
1a8eab9ec5 |
|
|
@ -198,5 +198,6 @@ docker ps
|
|||
查看三个容器(metis-db、metis-web、metis-svr)启动状态,如正常启动,则安装成功。
|
||||

|
||||
如安装成功,可以通过浏览器直接访问: `http://${IP}`
|
||||
注意:Metis依赖80和8080端口,腾讯云服务器默认开通了80但没有开通8080的外网访问权限,需要手动在安全组中增加对8080端口的放通。
|
||||
|
||||
请参考API使用说明进行API调用
|
||||
请参考API使用说明进行API调用
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ 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,8 +90,7 @@ 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)
|
||||
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:
|
||||
if statistic_result == 0 or ewma_result == 0 or polynomial_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