Skip to content

Commit a23cfc8

Browse files
author
Ubuntu
committed
new kpi process
1 parent 2d87bf9 commit a23cfc8

5 files changed

+6567
-3
lines changed

README.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,30 @@ Purpose: to search and count anomalies in feature correlations for shops <br />
33
Path on DS-instance: /home/ubuntu/DusFolder/anomaly_research/fea_conv/feature_anomaly_detection
44

55
## how to run main code
6-
change parameters in conv_config.py and run eshop_anomaly_count.py
6+
change parameters in conv_config.py and run eshop_anomaly_count.py <br />
7+
OR <br />
8+
change parameters in kpi_config.py and run eshop_anomaly_kpi.py <br />
79

810
### parameters
911

1012
ACCOUNT_ID - shop id <br />
11-
SLICE - batch size in sessions <br />
13+
SLICE - batch size in sessions (for eshop_anomaly_count only) <br />
1214
BEG_DATE - begin date of timeframe <br />
1315
END_DATE - end date of timeframe <br />
1416
LQ - left quantile aka bottom border for anomalies <br />
1517
RQ - right quantile aka top border for anomalies <br />
1618
--to_sql - key to export result to db <br />
17-
--no_sql - key to not export result to db (default)
19+
--no_sql - key to not export result to db (default) <br />
20+
21+
### result tables
22+
23+
eshop_anomaly_count.py : <br />
24+
anomaly_matrix.csv <br />
25+
batch_counts.csv (sql data.feature_anomaly_batch_counts) <br />
26+
<br />
27+
eshop_anomaly_kpi.py : <br />
28+
anomaly_table.csv (sql data.eshop_anomaly_table) <br />
29+
metric_lines.csv <br />
30+
tops_kpi.csv (sql data.eshop_anomaly_tops_kpi) <br />
31+
32+

0 commit comments

Comments
 (0)