MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / clean_abnormal

Function clean_abnormal

evaluation/src/evaluation_ves.py:18–26  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

16
17
18def clean_abnormal(input):
19 input = np.asarray(input)
20 processed_list = []
21 mean = np.mean(input, axis=0)
22 std = np.std(input, axis=0)
23 for x in input:
24 if x < mean + 3 * std and x > mean - 3 * std:
25 processed_list.append(x)
26 return processed_list
27
28
29def execute_sql(sql, db_path):

Callers 1

iterated_execute_sqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected