diff --git a/tests/data/processed/features/frequency/test03/messages.csv b/tests/data/processed/features/frequency/test03/messages.csv new file mode 100644 index 00000000..ea11fbdb --- /dev/null +++ b/tests/data/processed/features/frequency/test03/messages.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" diff --git a/tests/data/processed/features/frequency/test04/messages.csv b/tests/data/processed/features/frequency/test04/messages.csv new file mode 100644 index 00000000..ea11fbdb --- /dev/null +++ b/tests/data/processed/features/frequency/test04/messages.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" diff --git a/tests/data/processed/features/frequency/test05/messages.csv b/tests/data/processed/features/frequency/test05/messages.csv new file mode 100644 index 00000000..2d9e939f --- /dev/null +++ b/tests/data/processed/features/frequency/test05/messages.csv @@ -0,0 +1,8 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" +"thirtyminutes0000#2020-10-12 00:00:00,2020-10-12 00:29:59","thirtyminutes0000","2020-10-12 00:00:00","2020-10-12 00:29:59",1,3,3,0,13,1,1,1,29,29 +"thirtyminutes0000#2020-10-13 00:00:00,2020-10-13 00:29:59","thirtyminutes0000","2020-10-13 00:00:00","2020-10-13 00:29:59",1,1,1,0,0,0,0,0,NA,NA +"thirtyminutes0001#2020-10-12 00:30:00,2020-10-12 00:59:59","thirtyminutes0001","2020-10-12 00:30:00","2020-10-12 00:59:59",1,2,2,46,59,2,3,2,30,59 +"thirtyminutes0001#2020-10-13 00:30:00,2020-10-13 00:59:59","thirtyminutes0001","2020-10-13 00:30:00","2020-10-13 00:59:59",0,0,0,NA,NA,0,1,1,30,30 +"thirtyminutes0002#2020-10-12 01:00:00,2020-10-12 01:29:59","thirtyminutes0002","2020-10-12 01:00:00","2020-10-12 01:29:59",1,1,1,60,60,1,2,2,60,88 +"thirtyminutes0046#2020-10-12 23:00:00,2020-10-12 23:29:59","thirtyminutes0046","2020-10-12 23:00:00","2020-10-12 23:29:59",4,4,1,1380,1409,1,1,1,1393,1393 +"thirtyminutes0047#2020-10-12 23:30:00,2020-10-12 23:59:59","thirtyminutes0047","2020-10-12 23:30:00","2020-10-12 23:59:59",2,2,1,1426,1439,1,1,1,1410,1410 diff --git a/tests/data/processed/features/frequency/test06/messages.csv b/tests/data/processed/features/frequency/test06/messages.csv new file mode 100644 index 00000000..ea11fbdb --- /dev/null +++ b/tests/data/processed/features/frequency/test06/messages.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" diff --git a/tests/data/processed/features/periodic/test01/messages.csv b/tests/data/processed/features/periodic/test01/messages.csv index 7e1899f6..e7ca6e93 100644 --- a/tests/data/processed/features/periodic/test01/messages.csv +++ b/tests/data/processed/features/periodic/test01/messages.csv @@ -1,9 +1,9 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" -"afternoon#2020-05-28#12:00:00#2020-05-28#17:59:59","afternoon","2020-05-28","12:00:00","2020-05-28","17:59:59",1,2,2,830,949,1,3,3,722,979 -"daily#2020-05-28#00:00:00#2020-05-28#23:59:59","daily","2020-05-28","00:00:00","2020-05-28","23:59:59",7,12,6,6,1382,3,8,6,219,1401 -"daily#2020-05-29#00:00:00#2020-05-29#23:59:59","daily","2020-05-29","00:00:00","2020-05-29","23:59:59",3,6,4,401,1382,1,4,4,388,1401 -"evening#2020-05-28#18:00:00#2020-05-28#23:59:59","evening","2020-05-28","18:00:00","2020-05-28","23:59:59",2,3,2,1173,1382,1,2,2,1218,1401 -"evening#2020-05-29#18:00:00#2020-05-29#23:59:59","evening","2020-05-29","18:00:00","2020-05-29","23:59:59",2,3,2,1173,1382,1,2,2,1218,1401 -"morning#2020-05-28#06:00:00#2020-05-28#11:59:59","morning","2020-05-28","06:00:00","2020-05-28","11:59:59",1,3,3,401,660,1,2,2,388,654 -"morning#2020-05-29#06:00:00#2020-05-29#11:59:59","morning","2020-05-29","06:00:00","2020-05-29","11:59:59",1,3,3,401,660,1,2,2,388,654 -"night#2020-05-28#00:00:00#2020-05-28#05:59:59","night","2020-05-28","00:00:00","2020-05-28","05:59:59",4,4,1,6,312,1,1,1,219,219 +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" +"afternoon#2020-05-28 12:00:00,2020-05-28 17:59:59","afternoon","2020-05-28 12:00:00","2020-05-28 17:59:59",1,2,2,830,949,1,3,3,722,979 +"daily#2020-05-28 00:00:00,2020-05-28 23:59:59","daily","2020-05-28 00:00:00","2020-05-28 23:59:59",7,12,6,6,1382,3,8,6,219,1401 +"daily#2020-05-29 00:00:00,2020-05-29 23:59:59","daily","2020-05-29 00:00:00","2020-05-29 23:59:59",3,6,4,401,1382,1,4,4,388,1401 +"evening#2020-05-28 18:00:00,2020-05-28 23:59:59","evening","2020-05-28 18:00:00","2020-05-28 23:59:59",2,3,2,1173,1382,1,2,2,1218,1401 +"evening#2020-05-29 18:00:00,2020-05-29 23:59:59","evening","2020-05-29 18:00:00","2020-05-29 23:59:59",2,3,2,1173,1382,1,2,2,1218,1401 +"morning#2020-05-28 06:00:00,2020-05-28 11:59:59","morning","2020-05-28 06:00:00","2020-05-28 11:59:59",1,3,3,401,660,1,2,2,388,654 +"morning#2020-05-29 06:00:00,2020-05-29 11:59:59","morning","2020-05-29 06:00:00","2020-05-29 11:59:59",1,3,3,401,660,1,2,2,388,654 +"night#2020-05-28 00:00:00,2020-05-28 05:59:59","night","2020-05-28 00:00:00","2020-05-28 05:59:59",4,4,1,6,312,1,1,1,219,219 diff --git a/tests/data/processed/features/periodic/test02/messages.csv b/tests/data/processed/features/periodic/test02/messages.csv index 937cd441..a3337318 100644 --- a/tests/data/processed/features/periodic/test02/messages.csv +++ b/tests/data/processed/features/periodic/test02/messages.csv @@ -1,9 +1,9 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" -"afternoon#2020-05-28#12:00:00#2020-05-28#17:59:59","afternoon","2020-05-28","12:00:00","2020-05-28","17:59:59",1,2,2,830,949,1,3,3,722,979 -"daily#2020-05-28#00:00:00#2020-05-28#23:59:59","daily","2020-05-28","00:00:00","2020-05-28","23:59:59",1,12,12,6,1382,1,8,8,219,1401 -"daily#2020-05-29#00:00:00#2020-05-29#23:59:59","daily","2020-05-29","00:00:00","2020-05-29","23:59:59",0,6,6,401,1382,0,4,4,388,1401 -"evening#2020-05-28#18:00:00#2020-05-28#23:59:59","evening","2020-05-28","18:00:00","2020-05-28","23:59:59",1,3,3,1173,1382,1,2,2,1218,1401 -"evening#2020-05-29#18:00:00#2020-05-29#23:59:59","evening","2020-05-29","18:00:00","2020-05-29","23:59:59",0,3,3,1173,1382,0,2,2,1218,1401 -"morning#2020-05-28#06:00:00#2020-05-28#11:59:59","morning","2020-05-28","06:00:00","2020-05-28","11:59:59",1,3,3,401,660,1,2,2,388,654 -"morning#2020-05-29#06:00:00#2020-05-29#11:59:59","morning","2020-05-29","06:00:00","2020-05-29","11:59:59",0,3,3,401,660,0,2,2,388,654 -"night#2020-05-28#00:00:00#2020-05-28#05:59:59","night","2020-05-28","00:00:00","2020-05-28","05:59:59",1,4,4,6,312,1,1,1,219,219 +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" +"afternoon#2020-05-28 12:00:00,2020-05-28 17:59:59","afternoon","2020-05-28 12:00:00","2020-05-28 17:59:59",1,2,2,830,949,1,3,3,722,979 +"daily#2020-05-28 00:00:00,2020-05-28 23:59:59","daily","2020-05-28 00:00:00","2020-05-28 23:59:59",1,12,12,6,1382,1,8,8,219,1401 +"daily#2020-05-29 00:00:00,2020-05-29 23:59:59","daily","2020-05-29 00:00:00","2020-05-29 23:59:59",0,6,6,401,1382,0,4,4,388,1401 +"evening#2020-05-28 18:00:00,2020-05-28 23:59:59","evening","2020-05-28 18:00:00","2020-05-28 23:59:59",1,3,3,1173,1382,1,2,2,1218,1401 +"evening#2020-05-29 18:00:00,2020-05-29 23:59:59","evening","2020-05-29 18:00:00","2020-05-29 23:59:59",0,3,3,1173,1382,0,2,2,1218,1401 +"morning#2020-05-28 06:00:00,2020-05-28 11:59:59","morning","2020-05-28 06:00:00","2020-05-28 11:59:59",1,3,3,401,660,1,2,2,388,654 +"morning#2020-05-29 06:00:00,2020-05-29 11:59:59","morning","2020-05-29 06:00:00","2020-05-29 11:59:59",0,3,3,401,660,0,2,2,388,654 +"night#2020-05-28 00:00:00,2020-05-28 05:59:59","night","2020-05-28 00:00:00","2020-05-28 05:59:59",1,4,4,6,312,1,1,1,219,219 diff --git a/tests/data/processed/features/periodic/test03/messages.csv b/tests/data/processed/features/periodic/test03/messages.csv index 5599636f..ea11fbdb 100644 --- a/tests/data/processed/features/periodic/test03/messages.csv +++ b/tests/data/processed/features/periodic/test03/messages.csv @@ -1 +1 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" diff --git a/tests/data/processed/features/periodic/test04/messages.csv b/tests/data/processed/features/periodic/test04/messages.csv index 5599636f..ea11fbdb 100644 --- a/tests/data/processed/features/periodic/test04/messages.csv +++ b/tests/data/processed/features/periodic/test04/messages.csv @@ -1 +1 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","messages_rapids_received_countmostfrequentcontact","messages_rapids_received_count","messages_rapids_received_distinctcontacts","messages_rapids_received_timefirstmessage","messages_rapids_received_timelastmessage","messages_rapids_sent_countmostfrequentcontact","messages_rapids_sent_count","messages_rapids_sent_distinctcontacts","messages_rapids_sent_timefirstmessage","messages_rapids_sent_timelastmessage" diff --git a/tests/data/raw/test05/messages_raw.csv b/tests/data/raw/test05/messages_raw.csv new file mode 100644 index 00000000..aff7b56a --- /dev/null +++ b/tests/data/raw/test05/messages_raw.csv @@ -0,0 +1,23 @@ +timestamp,device_id,message_type,trace +1602475200000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,t00s6SCQrraJw1jlkwAFTSiyAISkMPmzngCL7fbZ +1602475999000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,FoQBWR2r8GS4WmuEKIvcEkJbxskbYg6VOsbLU1Wr +1602475999000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602476999000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,vfnqxPLJGjCrsPSKkST0iqRia6UwWLfNFAHWaXRs +1602477000000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602478000000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,5omWkSnUUoJ2T5maLRAO7SjxOLFB1CfccmPDhJOo +1602478000000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602480500000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602478799000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,89aUD0LNMBeDldSCjXKq4CRJzpu3ntG42XM8o0iY +1602478800000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,89aUD0LNMBeDldSCjXKq4CRJzpu3ntG42XM8o0iY +1602478799000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,Wk15QDFjeGCKI5CVxw2bkjsacmjsjwsHweZuo0Om +1602478800000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,Wk15QDFjeGCKI5CVxw2bkjsacmjsjwsHweZuo0Om +1602558000000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602558000000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602558799000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,FVPAjfv1ZLVs6vqxsqVeBJ1afdbUBXuZ7dByKned +1602558799000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602559799000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602559800000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602560800000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602561599000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,SFkNCC6I3SlHwtvvetmzh3hYpAmXwHGcxyoC2RGr +1602561600000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,1,t00s6SCQrraJw1jlkwAFTSiyAISkMPmzngCL7fbZ +1602563400000,wYESbVwI-4GfR-G5I6-7iKL-tOmCKs02MBun,2,FoQBWR2r8GS4WmuEKIvcEkJbxskbYg6VOsbLU1Wr \ No newline at end of file diff --git a/tests/data/raw/test06/messages_raw.csv b/tests/data/raw/test06/messages_raw.csv new file mode 100644 index 00000000..6e4ae903 --- /dev/null +++ b/tests/data/raw/test06/messages_raw.csv @@ -0,0 +1 @@ +timestamp,device_id,message_type,trace \ No newline at end of file diff --git a/tests/settings/frequency/testing_config.yaml b/tests/settings/frequency/testing_config.yaml index 1f0e52d5..8c74996c 100644 --- a/tests/settings/frequency/testing_config.yaml +++ b/tests/settings/frequency/testing_config.yaml @@ -15,7 +15,7 @@ MESSAGES: DB_TABLE: messages PROVIDERS: RAPIDS: - COMPUTE: False + COMPUTE: True MESSAGES_TYPES : [received, sent] FEATURES: received: [count, distinctcontacts, timefirstmessage, timelastmessage, countmostfrequentcontact] diff --git a/tests/settings/periodic/testing_config.yaml b/tests/settings/periodic/testing_config.yaml index 94993637..bd3f9b2e 100644 --- a/tests/settings/periodic/testing_config.yaml +++ b/tests/settings/periodic/testing_config.yaml @@ -16,7 +16,7 @@ MESSAGES: DB_TABLE: messages PROVIDERS: RAPIDS: - COMPUTE: False + COMPUTE: True MESSAGES_TYPES : [received, sent] FEATURES: received: [count, distinctcontacts, timefirstmessage, timelastmessage, countmostfrequentcontact]