(input)
| 16 | |
| 17 | |
| 18 | def 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 | |
| 29 | def execute_sql(sql, db_path): |
no outgoing calls
no test coverage detected